// 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> upload(data, folderId, bool isVideo) async { ArgumentError.checkNotNull(data, 'data'); ArgumentError.checkNotNull(folderId, 'folderId'); const _extra = {}; final queryParameters = {}; 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>('/file/upload', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, connectTimeout: 60000, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => UploadResult.fromJson(json), ); return value; } @override Future 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 = {}; final queryParameters = {}; final _data = {}; 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: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = _result.data; return value; } @override Future geocodeRegeo(lat, lng) async { ArgumentError.checkNotNull(lat, 'lat'); ArgumentError.checkNotNull(lng, 'lng'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request( 'https://restapi.amap.com/v3/geocode/regeo?key=542b46afa8e4b88fe1eb3c4d0ba0872f&location=${lng},${lat}&extensions=base', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = _result.data; return value; } @override Future memberLogin(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/auth/platform/memberLogin', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null : json, ); return value; } @override Future> appChannels() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/auth/appChannels', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ChannelsList.fromJson(json), ); return value; } @override Future> sendVerify(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/auth/sendVerify', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null :json as dynamic, ); return value; } @override Future>> creditGoods(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/creditGoods/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => Goods.fromJson(json), ), ); return value; } @override Future>> goodsCategory(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/creditGoodsCategory/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => GoodsCategory.fromJson(json), ), ); return value; } @override Future> creditGoodsById(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/creditGoods/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => Goods.fromJson(json), ); return value; } @override Future> queryInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/info', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => UserInfo.fromJson(json), ); return value; } @override Future> editInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/member/editMemberInfo', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> signInInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/signInInfo', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => SignInfo.fromJson(json), ); return value; } @override Future> signIn() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/signIn', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> recharge(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/wallet/recharge', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> rechargeActList(tenantCode) async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/wallet/rechargeActList?tenantCode=$tenantCode', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => RechargeActLists.fromJson(json), ); return value; } @override Future> receiveCoupon(couponId) async { ArgumentError.checkNotNull(couponId, 'couponId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/coupon/receive?couponId=$couponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null : json as dynamic, ); return value; } @override Future>> creditOrderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/creditOrder/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => ExchangeOrder.fromJson(json), ), ); return value; } @override Future> creditOrder(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/creditOrder/create', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> addAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/address/add', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> deleteAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/address/delete', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> queryAddress(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/address/detail/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> queryMemberAddress() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/address/queryMemberAddress', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map
((i) => Address.fromJson(i as Map)) .toList()); return value; } @override Future> updateAddress(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/address/update', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> queryCoupon(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/coupon/centreList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => Coupon.fromJson(json), ), ); return value; } @override Future>> queryCard(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/coupon/packageList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => Coupon.fromJson(json), ), ); return value; } @override Future>> queryStore(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/store/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => ((json ?? "") == "") ? null : (json as List) .map((i) => Store.fromJson(i as Map)) .toList()); return value; } @override Future>> informationList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/information/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => Activity.fromJson(json), ), ); return value; } @override Future> informationInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/information/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData
.fromJson( _result.data, (json) => Article.fromJson(json), ); return value; } @override Future> activityInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/information/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => Activity.fromJson(json), ); return value; } @override Future> creditOrderReceive(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/creditOrder/receive/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> queryHome() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/home/home', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => BrandData.fromJson(json), ); return value; } @override Future> queryStoreInfo(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/store/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> queryArticle(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/information/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo
.fromJson( json, (json) => Article.fromJson(json), ), ); return value; } @override Future>> queryBanner(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/banner/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => BannerData.fromJson(json), ), ); return value; } @override Future> queryHomeBrand() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/home/brand', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> minLogin(storeId) async { ArgumentError.checkNotNull(storeId, 'storeId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/auth/mini/login/$storeId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> queryBillInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/member/listBill', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => UserBill.fromJson(json), ), ); return value; } @override Future>> rankList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/rankList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => Rank.fromJson(i as Map)) .toList()); return value; } @override Future>> orderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/order/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => ((json ?? "") == "") ? null : PageInfo.fromJson( json, (json) => OrderInfo.fromJson(json), ), ); return value; } @override Future> orderDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/order/orderDetail?id=$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null : OrderInfo.fromJson(json), ); return value; } @override Future> continuePay(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/order/continuePay', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> receiveToCard(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/creditOrder/receive/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> vipList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/member/vipList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => VipCard.fromJson(i as Map)) .toList()); return value; } @override Future> vipDetail(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/member/vipDetail', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => VipCard.fromJson(json), ); return value; } @override Future>> msgList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/app-msg/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => Message.fromJson(json), ), ); return value; } @override Future captchaGet(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/captcha/get', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = (_result.data['repCode'] != '0000' || _result.data['repData'] == null) ? null : ClickWordCaptchaModel.fromMap(_result.data['repData']); return value; } @override Future captchaCheck(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/captcha/check', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); return (_result.data['repCode'] != '0000' || _result.data['repData'] == null || !_result.data['repData']['result']); } @override Future> queryMsg(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/app-msg/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> stats() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/app-msg/stats', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => MsgStats.fromJson(i as Map)) .toList()); return value; } @override Future> informationLikes(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/information/likes/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> memberComment(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/memberComment', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> memberCommentList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/memberComment/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => MemberCommentList.fromJson(json), ), ); return value; } @override Future> commentLike(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/memberComment/likes/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> delComment(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/memberComment/$id', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> shippingTrace(shipperCode, logisticCode) async { ArgumentError.checkNotNull(shipperCode, 'shipperCode'); ArgumentError.checkNotNull(logisticCode, 'logisticCode'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/order/getShippingTrace/$shipperCode/$logisticCode', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => Logistics.fromJson(json), ); return value; } // @override // Future> report(map) async { // ArgumentError.checkNotNull(map, 'map'); // const _extra = {}; // final queryParameters = {}; // final _data = {}; // _data.addAll(map ?? {}); // final _result = await _dio.request>('/other/report', // queryParameters: queryParameters, // options: RequestOptions( // method: 'POST', // headers: {}, // extra: _extra, // baseUrl: baseUrl), // data: _data); // final value = BaseData.fromJson( // _result.data, // (json) => json as bool, // ); // return value; // } @override Future> orderCancel(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/order/cancel/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> settlement(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/order/settlement', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null : (json as String), ); return value; } @override Future> trend(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/information/trend', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ((json??"") == "")? null : (json as bool), ); return value; } @override Future>> trendList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/information/trend-list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => ComunityComment.fromJson(json), ), ); return value; } @override Future>> followList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/member/follow/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => ListData.fromJson(json), ), ); return value; } @override Future> follow(followId) async { ArgumentError.checkNotNull(followId, 'followId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/follow/$followId', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> deleteTrend(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/information/trend/$id', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> socialInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/socialInfo', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => SocialInfo.fromJson(json), ); return value; } @override Future>> categoryList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/course/categoryList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => CategorySelectList.fromJson(i as Map)) .toList()); return value; } @override Future>> catalogList(courseId) async { ArgumentError.checkNotNull(courseId, 'courseId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/course/catalogList/$courseId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => Chapter.fromJson(i as Map)) .toList()); return value; } @override Future>> courseList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>('/course/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => CourseList.fromJson(json), ), ); return value; } @override Future>> collectList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/course/collectList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => CollectClassList.fromJson(i as Map)) .toList()); return value; } @override Future>> collect(collectId) async { ArgumentError.checkNotNull(collectId, 'collectId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/course/collect/$collectId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => CourseList.fromJson(i as Map)) .toList()); return value; } @override Future> course(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/course/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => CourseDetails.fromJson(json), ); return value; } @override Future> courseLikes(courseId) async { ArgumentError.checkNotNull(courseId, 'courseId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/course/likes/$courseId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> findBadges(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/app-memberAchievement/findBadges', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => VipBadgesList.fromJson(i as Map)) .toList()); return value; } @override Future>> getAchievementDetail( achievementCategoryId) async { ArgumentError.checkNotNull(achievementCategoryId, 'achievementCategoryId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/app-memberAchievement/getAchievementDetail?achievementCategoryId=$achievementCategoryId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => AchievementDetailList.fromJson(i as Map)) .toList()); return value; } @override Future>> benefitList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/benefitList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => VipBenefitList.fromJson(i as Map)) .toList()); return value; } @override Future> vipBenefit() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/home/vipBenefit', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => VipRuleDetails.fromJson(json), ); return value; } @override Future>> secondCardList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/secondCardList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => SecondCardList.fromJson(i as Map)) .toList()); return value; } @override Future> bindSecondCard(phone) async { ArgumentError.checkNotNull(phone, 'phone'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/bindSecondCard/$phone', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> unbindSecondCard(phone) async { ArgumentError.checkNotNull(phone, 'phone'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/unbindSecondCard/$phone', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> getAppShippingTrace(orderId) async { ArgumentError.checkNotNull(orderId, 'orderId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/creditOrder/getAppShippingTrace?orderId=$orderId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => Logistics.fromJson(json), ); return value; } @override Future> rankBuy(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/member/rankBuy', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> headlinesList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/information/categoryList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => HeadlinesList.fromJson(i as Map)) .toList()); return value; } @override Future> headlinesDetails(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/information/category/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => HeadlinesListDetails.fromJson(json), ); return value; } @override Future>> inviteMemberList(map) async { ArgumentError.checkNotNull(map, 'map'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(map ?? {}); final _result = await _dio.request>( '/member/inviteMemberList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => PageInfo.fromJson( json, (json) => InvitationList.fromJson(json), ), ); return value; } @override Future> wiped(memberCouponId) async { ArgumentError.checkNotNull(memberCouponId, 'memberCouponId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/coupon/wiped/$memberCouponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> couponDetail(memberCouponId) async { ArgumentError.checkNotNull(memberCouponId, 'memberCouponId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'coupon/detail/$memberCouponId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => CouponDetail.fromJson(json), ); return value; } @override Future> memberDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/detail/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => MemberInfor.fromJson(json), ); return value; } @override Future> appPopup() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/home/appPopup', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ActivityPos.fromJson(json), ); return value; } @override Future> deleteMine() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/deleteMine', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> complaint(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/information/complaint', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> appVersion() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/home/version', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => AppUpdate.fromJson(json), ); return value; } @override Future> recommendRank() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/home/recommendRank', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => HomeRank.fromJson(json), ); return value; } @override Future> sendVerifyByUpdatePayPwd() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/sendVerifyByUpdatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> updatePayPwd(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/member/updatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> verifyByUpdatePayPwd(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/member/verifyByUpdatePayPwd', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> vipCardIndex() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/vipCard/index', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => VipCardHome.fromJson(json), ); return value; } @override Future getIpInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/ipJson.jsp', queryParameters: queryParameters, options: RequestOptions( method: 'GET', extra: _extra, baseUrl: baseUrl, responseType: ResponseType.bytes), data: _data); var ts = gbk.decode(_result.data); final value = IpData.fromJson(jsonDecode( ts.substring(ts.indexOf("{\"ip\":\"")).replaceAll(");}", ""))); return value; } @override Future> orderVip(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/vipCard/orderVip', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> getConfig() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/raise/products', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => FarmersList.fromJson(i as Map)) .toList()); return value; } @override Future> changePhone(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/auth/changePhone', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> changeSendVerify(mobile) async { ArgumentError.checkNotNull(mobile, 'mobile'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/auth/sendVerify/$mobile', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> storeListByCreditId(creditGoodsId) async { ArgumentError.checkNotNull(creditGoodsId, 'creditGoodsId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/store/storeListByCreditId/$creditGoodsId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map((i) => Store.fromJson(i as Map)) .toList()); return value; } @override Future> invoiceOrderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/invoiceOrderList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : InvoiceList.fromJson(json), ); return value; } @override Future invoiceHeader(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'invoiceHeader', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future invoiceHeaders(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'invoiceHeader', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> invoiceHeaderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'invoiceHeader/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : TitleInfoList.fromJson(json), ); return value; } @override Future> delInvoiceHeader(ids) async { ArgumentError.checkNotNull(ids, 'ids'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'invoiceHeader?ids[]=$ids', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future invoiceSubmit(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'invoice', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> invoicePage(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'invoice/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : InvoicesHistoryList.fromJson(json), ); return value; } }