// GENERATED CODE - DO NOT MODIFY BY HAND part of 'retrofit_api.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** // ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element class _ApiService implements ApiService { _ApiService( this._dio, { this.baseUrl, this.errorLogger, }) { baseUrl ??= 'http://192.168.10.54:8766/app/'; } final Dio _dio; String? baseUrl; final ParseErrorLogger? errorLogger; @override Future> upload( File data, int folderId, bool isVideo, ) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = FormData(); _data.files.add(MapEntry( 'file', MultipartFile.fromFileSync( data.path, filename: data.path.split(Platform.pathSeparator).last, ), )); _data.fields.add(MapEntry( 'folderId', folderId.toString(), )); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'multipart/form-data', ) .compose( _dio.options, '/file/upload', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => UploadResult.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future searchPoi( String lat, String lng, String keywords, int size, int page, ) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, 'https://restapi.amap.com/v3/place/around?key=542b46afa8e4b88fe1eb3c4d0ba0872f&location=${lat},${lng}&keywords=${keywords}&offset={size}&page={page}&extensions=all', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch(_options); final _value = _result.data; return _value; } @override Future geocodeRegeo( String lat, String lng, ) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, 'https://restapi.amap.com/v3/geocode/regeo?key=542b46afa8e4b88fe1eb3c4d0ba0872f&location=${lat},${lng}&extensions=base', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch(_options); final _value = _result.data; return _value; } @override Future?> memberLogin(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/platform/memberLogin', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch?>(_options); late BaseData? _value; try { _value = _result.data == null ? null : BaseData.fromJson( _result.data!, (json) => LoginInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> appChannels() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/appChannels', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => Channels.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> sendVerify(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/sendVerify', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> creditGoods( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditGoods/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Goods.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> goodsCategory( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditGoodsCategory/page', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => GoodsCategory.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> creditGoodsById(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditGoods/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => Goods.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryInfo() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/info', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => UserInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> editInfo(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/editMemberInfo', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> signInInfo() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/signInInfo', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => SignInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> signIn() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/signIn', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> recharge(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/wallet/recharge', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> rechargeActList(String tenantCode) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/wallet/rechargeActList?tenantCode=${tenantCode}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => RechargeAct.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> receiveCoupon(String couponId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/coupon/receive?couponId=${couponId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> creditOrderList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditOrder/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => ExchangeOrder.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> creditOrder(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditOrder/create', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> addAddress(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/address/add', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> deleteAddress(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/address/delete', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryAddress(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/address/detail/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryMemberAddress() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/address/queryMemberAddress', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData
_value; try { _value = BaseListData
.fromJson( _result.data!, (json) => Address.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> updateAddress(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/address/update', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> queryCoupon( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/coupon/centreList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Coupon.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> queryCard( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/coupon/packageList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Coupon.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryStore(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/store/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Store.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> informationList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Activity.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> informationInfo(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData
_value; try { _value = BaseData
.fromJson( _result.data!, (json) => Article.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> activityInfo(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => Activity.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> creditOrderReceive(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditOrder/receive/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryHome() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/home', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => BrandData.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryStoreInfo(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/store/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> queryArticle( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo
.fromJson( json as Map, (json) => Article.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> queryBanner( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/banner/page', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => BannerData.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryHomeBrand() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/brand', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> minLogin(String storeId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/mini/login/${storeId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> queryBillInfo( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/listBill', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => UserBill.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> rankList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/rankList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Rank.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> orderList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => OrderInfo.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> orderDetail(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/orderDetail?id=${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => OrderInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> continuePay(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/continuePay', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> receiveToCard(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditOrder/receive/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> vipList(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/vipList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => VipCard.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> vipDetail(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/vipDetail', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => VipCard.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> msgList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/app-msg/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Message.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future captchaGet(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/captcha/get', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late ClickWordCaptchaModel _value; try { _value = ClickWordCaptchaModel.fromJson(_result.data!); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future captchaCheck(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/captcha/check', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch(_options); late bool _value; try { _value = _result.data!; } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> queryMsg(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/app-msg/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> stats() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/app-msg/stats', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => MsgStats.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> informationLikes(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/likes/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> memberComment(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/memberComment', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> memberCommentList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/memberComment/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => MemberComment.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> commentLike(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/memberComment/likes/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> delComment(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'DELETE', headers: _headers, extra: _extra, ) .compose( _dio.options, '/memberComment/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> shippingTrace( String shipperCode, String logisticCode, ) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/getShippingTrace/${shipperCode}/${logisticCode}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => Logistics.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> orderCancel(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/cancel/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> settlement(Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/order/settlement', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as String, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> trend(Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/trend', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as bool, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> trendList( Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/trend-list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => ComunityComment.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> followList( Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/follow/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Follow.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> mutualFollowList( Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/mutualFollow/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Follow.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> follow(String followId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'PUT', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/follow/${followId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> deleteTrend(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'DELETE', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/trend/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> socialInfo() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/socialInfo', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => SocialInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> categoryList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/categoryList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => CategorySelect.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> catalogList(String courseId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/catalogList/${courseId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Chapter.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> courseList( Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/list', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Course.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> collectList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/collectList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => CollectClass.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> collect(String collectId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/collect/${collectId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Course.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> course(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => CourseDetails.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> courseLikes(String courseId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/course/likes/${courseId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> findBadges(Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/app-memberAchievement/findBadges', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => VipBadges.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> getAchievementDetail( String achievementCategoryId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/app-memberAchievement/getAchievementDetail?achievementCategoryId=${achievementCategoryId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => AchivementDetailList.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> benefitList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/benefitList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => VipBenefit.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> vipBenefit() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/vipBenefit', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => VipRuleDetails.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> secondCardList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/secondCardList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => SecondCard.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> bindSecondCard(String phone) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/bindSecondCard/${phone}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> unbindSecondCard(String phone) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/unbindSecondCard/${phone}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> getAppShippingTrace(String orderId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/creditOrder/getAppShippingTrace?orderId=${orderId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => Logistics.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> rankBuy(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/rankBuy', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> headlinesList() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/categoryList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Headlines.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> headlinesDetails(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/category/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => HeadlinesDetails.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future>> inviteMemberList( Map map) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(map); final _options = _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/inviteMemberList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData> _value; try { _value = BaseData>.fromJson( _result.data!, (json) => PageInfo.fromJson( json as Map, (json) => Invitation.fromJson(json as Map), ), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> wiped(String memberCouponId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/coupon/wiped/${memberCouponId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> couponDetail(String memberCouponId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/coupon/detail/{memberCouponId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => CouponDetail.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> memberDetail(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/detail/${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => MemberInfor.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> appPopup() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/appPopup', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => ActivityPos.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> deleteMine() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/deleteMine', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> complaint(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/information/complaint', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> appVersion() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/version', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => AppUpdate.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> recommendRank() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/home/recommendRank', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => HomeRank.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> sendVerifyByUpdatePayPwd() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/sendVerifyByUpdatePayPwd', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> updatePayPwd(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/updatePayPwd', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> verifyByUpdatePayPwd( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/verifyByUpdatePayPwd', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> vipCardIndex() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/vipCard/index', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => VipCardHome.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> orderVip(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/vipCard/orderVip', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> getConfig() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/raise/products', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Farmers.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> changePhone(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/changePhone', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> changeSendVerify(String mobile) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/auth/sendVerify/${mobile}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> storeListByCreditId(String creditGoodsId) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/store/storeListByCreditId/${creditGoodsId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => Store.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future getIpInfo() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/ipJson.jsp', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch(_options); late String? _value; try { _value = _result.data; } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceOrderList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, 'order/invoiceOrderList', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => InvoiceList.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceHeader(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoiceHeader', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceHeaders(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'PUT', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoiceHeader', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceHeaderList( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoiceHeader/page', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => TitleInfoList.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> delInvoiceHeader(String ids) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'DELETE', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoiceHeader?ids[]=${ids}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceSubmit(Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoice', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as dynamic, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoicePage( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoice/page', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => InvoicesHistoryList.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> invoiceDetail(String id) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, 'invoice/detail${id}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => InvoicesDetailInfo.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> memberInfoByIds( Map param) async { final _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; _data.addAll(param); final _options = _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/memberInfoByIds', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => ImUser.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> memberSearch(String keyword) async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/member/memberSearch?keyword=${keyword}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseListData _value; try { _value = BaseListData.fromJson( _result.data!, (json) => ImUser.fromJson(json as Map), ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } @override Future> getQiniuToken() async { final _extra = {}; final queryParameters = {}; final _headers = {}; const Map? _data = null; final _options = _setStreamType>(Options( method: 'GET', headers: _headers, extra: _extra, ) .compose( _dio.options, '/config/qiniuToken', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, ))); final _result = await _dio.fetch>(_options); late BaseData _value; try { _value = BaseData.fromJson( _result.data!, (json) => json as String, ); } on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; } return _value; } RequestOptions _setStreamType(RequestOptions requestOptions) { if (T != dynamic && !(requestOptions.responseType == ResponseType.bytes || requestOptions.responseType == ResponseType.stream)) { if (T == String) { requestOptions.responseType = ResponseType.plain; } else { requestOptions.responseType = ResponseType.json; } } return requestOptions; } String _combineBaseUrls( String dioBaseUrl, String? baseUrl, ) { if (baseUrl == null || baseUrl.trim().isEmpty) { return dioBaseUrl; } final url = Uri.parse(baseUrl); if (url.isAbsolute) { return url.toString(); } return Uri.parse(dioBaseUrl).resolveUri(url).toString(); } }