You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
717 B
23 lines
717 B
import 'package:dating_touchme_app/network/api_urls.dart';
|
|
import 'package:dating_touchme_app/network/response_model.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
import 'package:dio/dio.dart';
|
|
|
|
part 'home_api.g.dart';
|
|
|
|
/// 首页相关API接口定义
|
|
@RestApi(baseUrl: '')
|
|
abstract class HomeApi {
|
|
factory HomeApi(Dio dio) = _HomeApi;
|
|
|
|
/// 获取用户列表
|
|
/// [pageNum] - 页码
|
|
/// [pageSize] - 每页数量
|
|
/// [type] - 类型:0-推荐,1-同城
|
|
@GET(ApiUrls.getMarriageList)
|
|
Future<HttpResponse<BaseResponse<PaginatedResponse<dynamic>>>> getMarriageList({
|
|
@Query('pageNum') required int pageNum,
|
|
@Query('pageSize') required int pageSize,
|
|
@Query('type') required int type,
|
|
});
|
|
}
|