mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add user managemant page
This commit is contained in:
@@ -3,7 +3,6 @@ import 'dart:convert';
|
||||
import 'package:cryptography/cryptography.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:eh_downloader_flutter/api/file.dart';
|
||||
import 'package:retrofit/dio.dart';
|
||||
import 'package:retrofit/retrofit.dart';
|
||||
|
||||
import 'api_result.dart';
|
||||
@@ -82,6 +81,12 @@ abstract class _EHApi {
|
||||
{@Query("id") int? id,
|
||||
@Query("username") String? username,
|
||||
@CancelRequest() CancelToken? cancel});
|
||||
@GET('/user/list')
|
||||
Future<ApiResult<List<BUser>>> getUsers(
|
||||
{@Query("all") bool? all,
|
||||
@Query("offset") int? offset,
|
||||
@Query("limit") int? limit,
|
||||
@CancelRequest() CancelToken? cancel});
|
||||
|
||||
@GET('/status')
|
||||
Future<ApiResult<ServerStatus>> getStatus(
|
||||
|
||||
Reference in New Issue
Block a user