// GENERATED CODE - DO NOT MODIFY BY HAND part of 'min_api.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** class _MinApiService implements MinApiService { _MinApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); baseUrl ??= kReleaseMode?serviceBaseUrl:localBaseUrl; } final Dio _dio; String baseUrl; @override Future> memberInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/info', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> findMiNiGroupList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/findMiNiGroupList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => FindMiNiGroupList.fromJson(i as Map)) .toList()); return value; } @override Future> miNiDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/product/queryMiNiProductDetail?id=$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => MiNiDetail.fromJson(json), ); return value; } @override Future>> addShoppingCart(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('shoppingcart', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => json==null?null:(json as List) .map( (i) => ShoppingCart.fromJson(i as Map)) .toList()); return value; } @override Future>> getShoppingCart(tableId) async { ArgumentError.checkNotNull(tableId, 'tableId'); const _extra = {}; final queryParameters = {'tableId': tableId}; final _data = {}; final _result = await _dio.request>('shoppingcart', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => ShoppingCart.fromJson(i as Map)) .toList()); return value; } @override Future> clearShoppingCart() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'shoppingcart/delCart', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as bool, ); return value; } @override Future>> shoppingCart1(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('shoppingcart', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => ShoppingCart.fromJson(i as Map)) .toList()); return value; } @override Future>> shoppingCartSingle(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'shoppingcart/single', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => ShoppingCart.fromJson(i as Map)) .toList()); return value; } @override Future> getOrderInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/getOrderInfo', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json == "" ? null :SettleOrderInfo.fromJson(json), ); return value; } @override Future> getOrderDetails(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/getOrderDetail', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json==null?null:MinOrderInfo.fromJson(json), ); return value; } @override Future>> queryAddress() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'address/queryMemberAddress', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map
((i) => Address.fromJson(i as Map)) .toList()); return value; } @override Future> placeOrderFirst(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/placeOrderFirst', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json, ); return value; } @override Future> addOrder(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('order/addOrder', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json, ); return value; } @override Future> settlementWx(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('order/settlement', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json==null?null:(WxPay.fromJson(json)), ); return value; } @override Future> settlementApi(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('order/settlement', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json==null?null:(json as dynamic), ); return value; } @override Future> queryStoreInfo1(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('store/getStore', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> getParentInfo(tableId) async { ArgumentError.checkNotNull(tableId, 'tableId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'order/getParentInfo?tableId=$tableId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> recommendList() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'product/recommendList', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => HomeRecommendList.fromJson(i as Map)) .toList()); return value; } @override Future> homeConfig() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('store/homeConfig', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ShoppingHomeConfig.fromJson(json), ); return value; } @override Future> findActListByType(allDay, type) async { ArgumentError.checkNotNull(allDay, 'allDay'); ArgumentError.checkNotNull(type, 'type'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'actTemplate/findActListByType?allDay=$allDay&type=$type', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ActivityAreaList.fromJson(json), ); return value; } @override Future> viewProduct(actProductId, type) async { ArgumentError.checkNotNull(actProductId, 'actProductId'); ArgumentError.checkNotNull(type, 'type'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'actTemplate/viewProduct?actProductId=$actProductId&type=$type', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ActivityDetails.fromJson(json), ); return value; } @override Future> launchAct(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'actTemplate/launchAct', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => LaunchJoinAct.fromJson(json), ); return value; } @override Future> joinAct(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'actTemplate/joinAct', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => LaunchJoinAct.fromJson(json), ); return value; } @override Future> actPay(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'actTemplate/actPay', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future>> showMyActList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'actTemplate/showMyActList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => ActivityOrderList.fromJson(i as Map)) .toList()); return value; } @override Future> showOneAct(actRecordId) async { ArgumentError.checkNotNull(actRecordId, 'actRecordId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'actTemplate/showOneAct?actRecordId=$actRecordId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ActivityActRecordDetails.fromJson(json), ); return value; } @override Future> cancelMemberCoupon(orderId) async { ArgumentError.checkNotNull(orderId, 'orderId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'promotion/cancelMemberCoupon?orderId=$orderId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> useMemberCoupon(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'promotion/useMemberCoupon', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } }