// GENERATED CODE - DO NOT MODIFY BY HAND part of 'retrofit_api.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** class _ApiService implements ApiService { _ApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); baseUrl ??= kReleaseMode ? serviceBaseUrl : localBaseUrl; } final Dio _dio; String baseUrl; @override Future<BaseData<UploadResult>> upload(data, folderId,bool isVideo) async { ArgumentError.checkNotNull(data, 'data'); ArgumentError.checkNotNull(folderId, 'folderId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = FormData(); String fileName = data.path.split(Platform.pathSeparator).last; if(!isVideo && !fileName.contains(".jpeg") && !fileName.contains(".png")) fileName += ".jpeg"; else if(isVideo && !fileName.contains(".mp4")) fileName += ".mp4"; _data.files.add(MapEntry( 'file', MultipartFile.fromFileSync(data.path, filename: fileName))); print("filename:$fileName"); if (folderId != null) { _data.fields.add(MapEntry('folderId', folderId.toString())); } final _result = await _dio.request<Map<String, dynamic>>('/file/upload', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, connectTimeout: 60000, baseUrl: baseUrl), data: _data); final value = BaseData<UploadResult>.fromJson( _result.data, (json) => UploadResult.fromJson(json), ); return value; } @override Future<dynamic> searchPoi(lat, lng, keywords, size, page) async { ArgumentError.checkNotNull(lat, 'lat'); ArgumentError.checkNotNull(lng, 'lng'); ArgumentError.checkNotNull(keywords, 'keywords'); ArgumentError.checkNotNull(size, 'size'); ArgumentError.checkNotNull(page, 'page'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request( 'https://restapi.amap.com/v3/place/around?key=542b46afa8e4b88fe1eb3c4d0ba0872f&location=$lat,$lng&keywords=$keywords&offset={size}&page={page}&extensions=all', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = _result.data; return value; } @override Future<BaseData> memberLogin(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/auth/platform/memberLogin', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json==null?null:json, ); return value; } @override Future<BaseData<ChannelsList>> appChannels() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/auth/appChannels', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<ChannelsList>.fromJson( _result.data, (json) => ChannelsList.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> sendVerify(areaCode,mobile) async { ArgumentError.checkNotNull(mobile, 'mobile'); ArgumentError.checkNotNull(areaCode, 'areaCode'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/auth/sendVerify/$areaCode/$mobile', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<PageInfo<Goods>>> creditGoods(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/creditGoods/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Goods>>.fromJson( _result.data, (json) => PageInfo<Goods>.fromJson( json, (json) => Goods.fromJson(json), ), ); return value; } @override Future<BaseData<PageInfo<GoodsCategory>>> goodsCategory(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/creditGoodsCategory/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<GoodsCategory>>.fromJson( _result.data, (json) => PageInfo<GoodsCategory>.fromJson( json, (json) => GoodsCategory.fromJson(json), ), ); return value; } @override Future<BaseData<Goods>> creditGoodsById(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/creditGoods/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<Goods>.fromJson( _result.data, (json) => Goods.fromJson(json), ); return value; } @override Future<BaseData<UserInfo>> queryInfo() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/member/info', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<UserInfo>.fromJson( _result.data, (json) => UserInfo.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> editInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/member/editMemberInfo', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<SignInfo>> signInInfo() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/signInInfo', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<SignInfo>.fromJson( _result.data, (json) => SignInfo.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> signIn() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/member/signIn', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> recharge(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/wallet/recharge', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<RechargeActLists>> rechargeActList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/wallet/rechargeActList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<RechargeActLists>.fromJson( _result.data, (json) => RechargeActLists.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> receiveCoupon(couponId) async { ArgumentError.checkNotNull(couponId, 'couponId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/coupon/receive?couponId=$couponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json == null ? null :json as dynamic, ); return value; } @override Future<BaseData<PageInfo<ExchangeOrder>>> creditOrderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/creditOrder/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<ExchangeOrder>>.fromJson( _result.data, (json) => PageInfo<ExchangeOrder>.fromJson( json, (json) => ExchangeOrder.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> creditOrder(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/creditOrder/create', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> addAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/address/add', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> deleteAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/address/delete', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> queryAddress(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/address/detail/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<Address>>> queryMemberAddress() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/address/queryMemberAddress', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<Address>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<Address>((i) => Address.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<dynamic>> updateAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/address/update', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<PageInfo<Coupon>>> queryCoupon(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/coupon/centreList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Coupon>>.fromJson( _result.data, (json) => PageInfo<Coupon>.fromJson( json, (json) => Coupon.fromJson(json), ), ); return value; } @override Future<BaseData<PageInfo<Coupon>>> queryCard(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/coupon/packageList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Coupon>>.fromJson( _result.data, (json) => PageInfo<Coupon>.fromJson( json, (json) => Coupon.fromJson(json), ), ); return value; } @override Future<BaseData<List<Store>>> queryStore(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/store/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<Store>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<Store>((i) => Store.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<PageInfo<Activity>>> informationList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/information/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Activity>>.fromJson( _result.data, (json) => PageInfo<Activity>.fromJson( json, (json) => Activity.fromJson(json), ), ); return value; } @override Future<BaseData<Article>> informationInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/information/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<Article>.fromJson( _result.data, (json) => Article.fromJson(json), ); return value; } @override Future<BaseData<Activity>> activityInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/information/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<Activity>.fromJson( _result.data, (json) => Activity.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> creditOrderReceive(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/creditOrder/receive/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<BrandData>> queryHome() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/home/home', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<BrandData>.fromJson( _result.data, (json) => BrandData.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> queryStoreInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/store/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<PageInfo<Article>>> queryArticle(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/information/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Article>>.fromJson( _result.data, (json) => PageInfo<Article>.fromJson( json, (json) => Article.fromJson(json), ), ); return value; } @override Future<BaseData<PageInfo<BannerData>>> queryBanner(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/banner/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<BannerData>>.fromJson( _result.data, (json) => PageInfo<BannerData>.fromJson( json, (json) => BannerData.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> queryHomeBrand() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/home/brand', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> minLogin(storeId) async { ArgumentError.checkNotNull(storeId, 'storeId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/auth/mini/login/$storeId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<PageInfo<UserBill>>> queryBillInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/member/listBill', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<UserBill>>.fromJson( _result.data, (json) => PageInfo<UserBill>.fromJson( json, (json) => UserBill.fromJson(json), ), ); return value; } @override Future<BaseData<List<Rank>>> rankList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/member/rankList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<Rank>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<Rank>((i) => Rank.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<PageInfo<OrderInfo>>> orderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/order/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<OrderInfo>>.fromJson( _result.data, (json) => ((json??"") == "")?null:PageInfo<OrderInfo>.fromJson( json, (json) => OrderInfo.fromJson(json), ), ); return value; } @override Future<BaseData<OrderInfo>> orderDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/order/orderDetail?id=$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<OrderInfo>.fromJson( _result.data, (json) => json == null ? null : OrderInfo.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> continuePay(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/order/continuePay', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> receiveToCard(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/creditOrder/receive/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<VipCard>>> vipList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/member/vipList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<VipCard>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<VipCard>((i) => VipCard.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<VipCard>> vipDetail(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/member/vipDetail', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<VipCard>.fromJson( _result.data, (json) => VipCard.fromJson(json), ); return value; } @override Future<BaseData<PageInfo<Message>>> msgList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/app-msg/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<Message>>.fromJson( _result.data, (json) => PageInfo<Message>.fromJson( json, (json) => Message.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> queryMsg(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/app-msg/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<MsgStats>>> stats() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/app-msg/stats', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<MsgStats>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<MsgStats>((i) => MsgStats.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<dynamic>> informationLikes(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/information/likes/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> memberComment(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/memberComment', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<PageInfo<MemberCommentList>>> memberCommentList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/memberComment/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<MemberCommentList>>.fromJson( _result.data, (json) => PageInfo<MemberCommentList>.fromJson( json, (json) => MemberCommentList.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> commentLike(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/memberComment/likes/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> delComment(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/memberComment/$id', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<Logistics>> shippingTrace(shipperCode, logisticCode) async { ArgumentError.checkNotNull(shipperCode, 'shipperCode'); ArgumentError.checkNotNull(logisticCode, 'logisticCode'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/order/getShippingTrace/$shipperCode/$logisticCode', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<Logistics>.fromJson( _result.data, (json) => Logistics.fromJson(json), ); return value; } // @override // Future<BaseData<dynamic>> report(map) async { // ArgumentError.checkNotNull(map, 'map'); // const _extra = <String, dynamic>{}; // final queryParameters = <String, dynamic>{}; // final _data = <String, dynamic>{}; // _data.addAll(map ?? <String, dynamic>{}); // final _result = await _dio.request<Map<String, dynamic>>('/other/report', // queryParameters: queryParameters, // options: RequestOptions( // method: 'POST', // headers: <String, dynamic>{}, // extra: _extra, // baseUrl: baseUrl), // data: _data); // final value = BaseData<dynamic>.fromJson( // _result.data, // (json) => json as bool, // ); // return value; // } @override Future<BaseData<dynamic>> orderCancel(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/order/cancel/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<String>> settlement(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/order/settlement', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<String>.fromJson( _result.data, (json) => json==null?null:(json as String), ); return value; } @override Future<BaseData<bool>> trend(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/information/trend', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<bool>.fromJson( _result.data, (json) => (json??"")=="" ? null :(json as bool), ); return value; } @override Future<BaseData<PageInfo<ComunityComment>>> trendList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/information/trend-list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<ComunityComment>>.fromJson( _result.data, (json) => PageInfo<ComunityComment>.fromJson( json, (json) => ComunityComment.fromJson(json), ), ); return value; } @override Future<BaseData<PageInfo<ListData>>> followList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/member/follow/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<ListData>>.fromJson( _result.data, (json) => PageInfo<ListData>.fromJson( json, (json) => ListData.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> follow(followId) async { ArgumentError.checkNotNull(followId, 'followId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/follow/$followId', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> deleteTrend(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/information/trend/$id', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<SocialInfo>> socialInfo() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/socialInfo', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<SocialInfo>.fromJson( _result.data, (json) => SocialInfo.fromJson(json), ); return value; } @override Future<BaseData<List<CategorySelectList>>> categoryList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/course/categoryList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<CategorySelectList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<CategorySelectList>( (i) => CategorySelectList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<List<Chapter>>> catalogList(courseId) async { ArgumentError.checkNotNull(courseId, 'courseId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/course/catalogList/$courseId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<Chapter>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<Chapter>((i) => Chapter.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<PageInfo<CourseList>>> courseList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/course/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<CourseList>>.fromJson( _result.data, (json) => PageInfo<CourseList>.fromJson( json, (json) => CourseList.fromJson(json), ), ); return value; } @override Future<BaseData<List<CollectClassList>>> collectList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/course/collectList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<CollectClassList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<CollectClassList>( (i) => CollectClassList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<List<CourseList>>> collect(collectId) async { ArgumentError.checkNotNull(collectId, 'collectId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/course/collect/$collectId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<CourseList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<CourseList>( (i) => CourseList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<CourseDetails>> course(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/course/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<CourseDetails>.fromJson( _result.data, (json) => CourseDetails.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> courseLikes(courseId) async { ArgumentError.checkNotNull(courseId, 'courseId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/course/likes/$courseId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<VipBadgesList>>> findBadges(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/app-memberAchievement/findBadges', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<VipBadgesList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<VipBadgesList>( (i) => VipBadgesList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<List<AchievementDetailList>>> getAchievementDetail( achievementCategoryId) async { ArgumentError.checkNotNull(achievementCategoryId, 'achievementCategoryId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/app-memberAchievement/getAchievementDetail?achievementCategoryId=$achievementCategoryId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<AchievementDetailList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<AchievementDetailList>((i) => AchievementDetailList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<List<VipBenefitList>>> benefitList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/benefitList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<VipBenefitList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<VipBenefitList>( (i) => VipBenefitList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<VipRuleDetails>> vipBenefit() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/home/vipBenefit', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<VipRuleDetails>.fromJson( _result.data, (json) => VipRuleDetails.fromJson(json), ); return value; } @override Future<BaseData<List<SecondCardList>>> secondCardList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/secondCardList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<SecondCardList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<SecondCardList>( (i) => SecondCardList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<dynamic>> bindSecondCard(phone) async { ArgumentError.checkNotNull(phone, 'phone'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/bindSecondCard/$phone', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> unbindSecondCard(phone) async { ArgumentError.checkNotNull(phone, 'phone'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/unbindSecondCard/$phone', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<Logistics>> getAppShippingTrace(orderId) async { ArgumentError.checkNotNull(orderId, 'orderId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/creditOrder/getAppShippingTrace?orderId=$orderId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<Logistics>.fromJson( _result.data, (json) => Logistics.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> rankBuy(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/member/rankBuy', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<HeadlinesList>>> headlinesList() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/information/categoryList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<HeadlinesList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<HeadlinesList>( (i) => HeadlinesList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } @override Future<BaseData<HeadlinesListDetails>> headlinesDetails(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/information/category/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<HeadlinesListDetails>.fromJson( _result.data, (json) => HeadlinesListDetails.fromJson(json), ); return value; } @override Future<BaseData<PageInfo<InvitationList>>> inviteMemberList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(map ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/member/inviteMemberList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<PageInfo<InvitationList>>.fromJson( _result.data, (json) => PageInfo<InvitationList>.fromJson( json, (json) => InvitationList.fromJson(json), ), ); return value; } @override Future<BaseData<dynamic>> wiped(memberCouponId) async { ArgumentError.checkNotNull(memberCouponId, 'memberCouponId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/coupon/wiped/$memberCouponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<CouponDetail>> couponDetail(memberCouponId) async { ArgumentError.checkNotNull(memberCouponId, 'memberCouponId'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('coupon/detail/$memberCouponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<CouponDetail>.fromJson( _result.data, (json) => CouponDetail.fromJson(json), ); return value; } @override Future<BaseData<MemberInfor>> memberDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/detail/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<MemberInfor>.fromJson( _result.data, (json) => MemberInfor.fromJson(json), ); return value; } @override Future<BaseData<ActivityPos>> appPopup() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/home/appPopup', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<ActivityPos>.fromJson( _result.data, (json) => ActivityPos.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> deleteMine() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/deleteMine', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> complaint(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>( '/information/complaint', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<AppUpdate>> appVersion() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>('/home/version', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<AppUpdate>.fromJson( _result.data, (json) => AppUpdate.fromJson(json), ); return value; } @override Future<BaseData<HomeRank>> recommendRank() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/home/recommendRank', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<HomeRank>.fromJson( _result.data, (json) => HomeRank.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> sendVerifyByUpdatePayPwd() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/member/sendVerifyByUpdatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> updatePayPwd(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/member/updatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<dynamic>> verifyByUpdatePayPwd(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/member/verifyByUpdatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<VipCardHome>> vipCardIndex() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/vipCard/index', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<VipCardHome>.fromJson( _result.data, (json) => VipCardHome.fromJson(json), ); return value; } @override Future<BaseData<dynamic>> orderVip(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; _data.addAll(param ?? <String, dynamic>{}); final _result = await _dio.request<Map<String, dynamic>>('/vipCard/orderVip', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<dynamic>.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future<BaseData<List<FarmersList>>> getConfig() async { const _extra = <String, dynamic>{}; final queryParameters = <String, dynamic>{}; final _data = <String, dynamic>{}; final _result = await _dio.request<Map<String, dynamic>>( '/raise/products', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: <String, dynamic>{}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData<List<FarmersList>>.fromJson( _result.data, (json) => (json as List<dynamic>) .map<FarmersList>( (i) => FarmersList.fromJson(i as Map<String, dynamic>)) .toList()); return value; } }