// GENERATED CODE - DO NOT MODIFY BY HAND part of 'business_api.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** class _BusinessApiService implements BusinessApiService { _BusinessApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); baseUrl ??= kReleaseMode ? serviceBaseUrl : localBaseUrl; } final Dio _dio; String baseUrl; @override void dispose() { _dio.close(force: true); } @override Future annoToken(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('anno/token', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> getDayCounts(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'comprehensiveReport/getDayCounts', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : DayCount.fromJson(json), ); return value; } @override Future> popularList(offsetDay) async { ArgumentError.checkNotNull(offsetDay, 'offsetDay'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'dashBoard/store/?offsetDay=$offsetDay', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => PopularSalesList.fromJson(json), ); return value; } @override Future>> orderTrend() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('trend/orderTrend', 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) => OrderTrend.fromJson(i as Map)) .toList()); return value; } @override Future> vipCounts(date) async { ArgumentError.checkNotNull(date, 'date'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'largeScreenReport/getDayCounts?date=$date', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => VipCountsInfo.fromJson(json), ); return value; } @override Future>> dayFlow(yearMonth, isMonth) async { ArgumentError.checkNotNull(yearMonth, 'yearMonth'); ArgumentError.checkNotNull(isMonth, 'isMonth'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'dashBoard/order?yearMonth=$yearMonth&isMonth=$isMonth', 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) => DayFlowList.fromJson(i as Map)) .toList()); return value; } @override Future>> singleSales(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'audit/salesLeaderboard', 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) => SingleSalesList.fromJson(i as Map)) .toList()); return value; } @override Future>> goodsSalesList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'audit/allKindsSalesStatistics', 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) => GoodsTypeSalesList.fromJson(i as Map)) .toList()); return value; } @override Future> saleBusinessAnalysis(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'largeScreenReport/saleBusinessAnalysis', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : TradeSummaryList.fromJson(json), ); return value; } @override Future> findAdminOrderList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/findAdminOrderList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BusinessOrderList.fromJson(json), ); return value; } @override Future> getAdminOrderDetail(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/getAdminOrderDetail', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BusinessOrderDetailInfo.fromJson(json), ); return value; } @override Future> refundReason(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('reason/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : RefundReasonList.fromJson(json), ); return value; } @override Future refundOrder(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/refundOrder', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> productGroup(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'productGroup/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : ProductGroupList.fromJson(json), ); return value; } @override Future> findAdminProductLis(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/findAdminProductListNew', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BusinessGoods.fromJson(json), ); return value; } @override Future modifyPassword(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('user', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future goodsUpdate(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/putStatus', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future delProduct(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/delProduct', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future saveProductGroup(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'productGroup/saveProductGroup', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future delProductCategory(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'productGroup/delProductCategory', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> getStoreList( tenantCode, pageIndex, pageSize) async { ArgumentError.checkNotNull(tenantCode, 'tenantCode'); ArgumentError.checkNotNull(pageIndex, 'pageIndex'); ArgumentError.checkNotNull(pageSize, 'pageSize'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'store/getStoreList?tenantCode=$tenantCode&pageIndex=$pageIndex&pageSize=$pageSize', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => BusinessStoreList.fromJson(json), ); return value; } @override Future saveStoreInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('store', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> upload(data, folderId) async { ArgumentError.checkNotNull(data, 'data'); ArgumentError.checkNotNull(folderId, 'folderId'); const _extra = {}; final queryParameters = {}; final _data = FormData(); String fileName = data.path.split(Platform.pathSeparator).last; _data.files.add(MapEntry( 'file', MultipartFile.fromFileSync(data.path, filename: fileName))); print("filename:$fileName"); if (folderId != null) { _data.fields.add(MapEntry('folderId', folderId.toString())); } final _result = await _dio.request>('/file/upload', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, connectTimeout: 60000, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => UploadResult.fromJson(json), ); return value; } @override Future wipedBatchs(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _result = await _dio.request>( 'ticket/wipedBatchs', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: param); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future productSortTop(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/productSortTop', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> ticketCode(code) async { ArgumentError.checkNotNull(code, 'code'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'ticket/code/$code', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : TicketDetails.fromJson(json), ); return value; } @override Future> showList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'ticket/showList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : TicketShow.fromJson(json), ); return value; } @override Future> wipedRecord(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'ticket/wipedRecord', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : TicketRecord.fromJson(json), ); return value; } @override Future>> wipedStats(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'ticket/wipedStats', 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) => TicketStatsList.fromJson(i as Map)) .toList()); return value; } @override Future> vipDataList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'member/page', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BusinessVipList.fromJson(json), ); return value; } @override Future> rechargeFlow(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'audit/memberSourceRechargeDetial', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : RechargeFlowList.fromJson(json), ); return value; } @override Future> getTenantMemberBill(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'member/getTenantMemberBill', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BalanceChangeList.fromJson(json), ); return value; } @override Future> storeOpenTime(storeId) async { ArgumentError.checkNotNull(storeId, 'storeId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'store/storeOpenTime/$storeId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : StoreTimeInfoList.fromJson(json), ); return value; } @override Future updateSubscribe(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _result = await _dio.request>( 'product/updateSubscribe', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: param); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future balancePay(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _result = await _dio.request>( 'order/balancePay', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: param); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> getOrderUserDetail(orderId) async { ArgumentError.checkNotNull(orderId, 'orderId'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'order/getOrderUserDetail?orderId=$orderId', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => OrderUserDetail.fromJson(json), ); return value; } @override Future> queryMemberInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'member/queryMemberInfo', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : PhoneQueryMemberInfo.fromJson(json), ); return value; } @override Future> getRechargePreferential(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'rechargePreferential/get', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BusRechargeList.fromJson(json), ); return value; } @override Future posMemberRecharge(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _result = await _dio.request>( 'member/posMemberRecharge', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: param); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future manualQuery(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _result = await _dio.request>( 'member/manualQuery', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: param); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : json, ); return value; } @override Future> createMemberSourceByMobile(mobile,nickName) async { ArgumentError.checkNotNull(mobile, 'mobile'); ArgumentError.checkNotNull(nickName, 'nickName'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'member/createMemberSourceByMobile?mobile=$mobile&nickName=$nickName', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : AddVipInfo.fromJson(json), ); return value; } @override Future> clerkList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'user/userPage', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : ClerkManageList.fromJson(json), ); return value; } @override Future> userEdit(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'user', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : UserInfoEdit.fromJson(json), ); return value; } @override Future> delUser(ids) async { ArgumentError.checkNotNull(ids, 'ids'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( 'user?ids[]=$ids', queryParameters: queryParameters, options: RequestOptions( method: 'DELETE', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => json as dynamic, ); return value; } @override Future> userModify(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'user', queryParameters: queryParameters, options: RequestOptions( method: 'PUT', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : UserInfoEdit.fromJson(json), ); return value; } @override Future> storeMoney(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'dashBoard/storeMoney', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => (json ?? "") == "" ? null : BalanceConsumptionRankingList.fromJson(json), ); return value; } }