// 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 ??= 'http://platform.test.api.lotus-wallet.com/app/'; } final Dio _dio; String baseUrl; @override Future upload(data, folderId) async { ArgumentError.checkNotNull(data, 'data'); ArgumentError.checkNotNull(folderId, 'folderId'); const _extra = {}; final queryParameters = {}; final _data = FormData(); _data.files.add(MapEntry( 'file', MultipartFile.fromFileSync(data.path, filename: data.path.split(Platform.pathSeparator).last))); 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, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); 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 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); return value; } @override Future sendVerify(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); 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); 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); 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); 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); 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); 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); 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>('/member/recharge', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); return value; } @override Future informationInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/information/{id}', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); return value; } }