From 67d904cbd8282968a588cc77e027ffe0b9b3d1b0 Mon Sep 17 00:00:00 2001 From: fmk Date: Tue, 6 Jul 2021 09:55:37 +0800 Subject: [PATCH] =?UTF-8?q?g=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/retrofit/data/banner.g.dart | 38 ++ lib/retrofit/data/brand_data.g.dart | 33 ++ lib/retrofit/data/coupon_vo.g.dart | 67 +++ lib/retrofit/data/delivery_info.g.dart | 30 ++ lib/retrofit/data/promotion.g.dart | 67 +++ lib/retrofit/data/store_info.g.dart | 92 +++++ lib/retrofit/retrofit_api.g.dart | 542 +++++++++++++++++++++++++ 7 files changed, 869 insertions(+) create mode 100644 lib/retrofit/data/banner.g.dart create mode 100644 lib/retrofit/data/brand_data.g.dart create mode 100644 lib/retrofit/data/coupon_vo.g.dart create mode 100644 lib/retrofit/data/delivery_info.g.dart create mode 100644 lib/retrofit/data/promotion.g.dart create mode 100644 lib/retrofit/data/store_info.g.dart create mode 100644 lib/retrofit/retrofit_api.g.dart diff --git a/lib/retrofit/data/banner.g.dart b/lib/retrofit/data/banner.g.dart new file mode 100644 index 00000000..4cc8382f --- /dev/null +++ b/lib/retrofit/data/banner.g.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'banner.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BannerData _$BannerDataFromJson(Map json) { + return BannerData( + content: json['content'] as String, + createTime: json['createTime'] as String, + createUser: json['createUser'] as num, + id: json['id'] as num, + imgUrl: json['imgUrl'] as String, + isDelete: json['isDelete'] as bool, + storeId: json['storeId'] as String, + tenantCode: json['tenantCode'] as String, + type: json['type'] as String, + updateTime: json['updateTime'] as String, + updateUser: json['updateUser'] as num, + ); +} + +Map _$BannerDataToJson(BannerData instance) => + { + 'content': instance.content, + 'createTime': instance.createTime, + 'createUser': instance.createUser, + 'id': instance.id, + 'imgUrl': instance.imgUrl, + 'isDelete': instance.isDelete, + 'storeId': instance.storeId, + 'tenantCode': instance.tenantCode, + 'type': instance.type, + 'updateTime': instance.updateTime, + 'updateUser': instance.updateUser, + }; diff --git a/lib/retrofit/data/brand_data.g.dart b/lib/retrofit/data/brand_data.g.dart new file mode 100644 index 00000000..bce83c38 --- /dev/null +++ b/lib/retrofit/data/brand_data.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'brand_data.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BrandData _$BrandDataFromJson(Map json) { + return BrandData() + ..bannerList = (json['bannerList'] as List) + ?.map((e) => + e == null ? null : BannerData.fromJson(e as Map)) + ?.toList() + ..company = json['company'] as String + ..companyDesc = json['companyDesc'] as String + ..originAvatar = json['originAvatar'] as String + ..originDesc = json['originDesc'] as String + ..originator = json['originator'] as String + ..contents = json['contents'] + ..ideals = json['ideals']; +} + +Map _$BrandDataToJson(BrandData instance) => { + 'bannerList': instance.bannerList, + 'company': instance.company, + 'companyDesc': instance.companyDesc, + 'originAvatar': instance.originAvatar, + 'originDesc': instance.originDesc, + 'originator': instance.originator, + 'contents': instance.contents, + 'ideals': instance.ideals, + }; diff --git a/lib/retrofit/data/coupon_vo.g.dart b/lib/retrofit/data/coupon_vo.g.dart new file mode 100644 index 00000000..48008a6c --- /dev/null +++ b/lib/retrofit/data/coupon_vo.g.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'coupon_vo.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CouponVo _$CouponVoFromJson(Map json) { + return CouponVo( + bizId: json['bizId'] as String, + bizType: json['bizType'] as num, + centreDisplay: json['centreDisplay'] as bool, + couponDescription: json['couponDescription'] as String, + couponImg: json['couponImg'] as String, + couponName: json['couponName'] as String, + createTime: json['createTime'] as String, + createUser: json['createUser'] as num, + discountAmount: json['discountAmount'] as num, + discountPercent: json['discountPercent'] as num, + fullAmount: json['fullAmount'] as num, + id: json['id'] as num, + isDelete: json['isDelete'] as num, + memberCouponId: json['memberCouponId'] as num, + promotionId: json['promotionId'] as num, + publishEndTime: json['publishEndTime'] as String, + publishStartTime: json['publishStartTime'] as String, + receiveTime: json['receiveTime'] as String, + received: json['received'] as bool, + status: json['status'] as num, + tenantCode: json['tenantCode'] as String, + updateTime: json['updateTime'] as String, + updateUser: json['updateUser'] as num, + useEndTime: json['useEndTime'] as String, + useStartTime: json['useStartTime'] as String, + useTime: json['useTime'] as String, + ); +} + +Map _$CouponVoToJson(CouponVo instance) => { + 'bizId': instance.bizId, + 'bizType': instance.bizType, + 'centreDisplay': instance.centreDisplay, + 'couponDescription': instance.couponDescription, + 'couponImg': instance.couponImg, + 'couponName': instance.couponName, + 'createTime': instance.createTime, + 'createUser': instance.createUser, + 'discountAmount': instance.discountAmount, + 'discountPercent': instance.discountPercent, + 'fullAmount': instance.fullAmount, + 'id': instance.id, + 'isDelete': instance.isDelete, + 'memberCouponId': instance.memberCouponId, + 'promotionId': instance.promotionId, + 'publishEndTime': instance.publishEndTime, + 'publishStartTime': instance.publishStartTime, + 'receiveTime': instance.receiveTime, + 'received': instance.received, + 'status': instance.status, + 'tenantCode': instance.tenantCode, + 'updateTime': instance.updateTime, + 'updateUser': instance.updateUser, + 'useEndTime': instance.useEndTime, + 'useStartTime': instance.useStartTime, + 'useTime': instance.useTime, + }; diff --git a/lib/retrofit/data/delivery_info.g.dart b/lib/retrofit/data/delivery_info.g.dart new file mode 100644 index 00000000..b3f141fc --- /dev/null +++ b/lib/retrofit/data/delivery_info.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'delivery_info.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DeliveryInfo _$DeliveryInfoFromJson(Map json) { + return DeliveryInfo( + dadaRegStatus: json['dadaRegStatus'] as bool, + dadaSourceId: json['dadaSourceId'] as String, + dadaStatus: json['dadaStatus'] as bool, + dianwodaRegStatus: json['dianwodaRegStatus'] as bool, + dianwodaStatus: json['dianwodaStatus'] as bool, + meituanRegStatus: json['meituanRegStatus'] as bool, + meituanStatus: json['meituanStatus'] as bool, + ); +} + +Map _$DeliveryInfoToJson(DeliveryInfo instance) => + { + 'dadaRegStatus': instance.dadaRegStatus, + 'dadaSourceId': instance.dadaSourceId, + 'dadaStatus': instance.dadaStatus, + 'dianwodaRegStatus': instance.dianwodaRegStatus, + 'dianwodaStatus': instance.dianwodaStatus, + 'meituanRegStatus': instance.meituanRegStatus, + 'meituanStatus': instance.meituanStatus, + }; diff --git a/lib/retrofit/data/promotion.g.dart b/lib/retrofit/data/promotion.g.dart new file mode 100644 index 00000000..7fdf525a --- /dev/null +++ b/lib/retrofit/data/promotion.g.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'promotion.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Promotion _$PromotionFromJson(Map json) { + return Promotion( + activityEndTime: json['activityEndTime'] as String, + activityStartTime: json['activityStartTime'] as String, + applyEndTime: json['applyEndTime'] as String, + applyStartTime: json['applyStartTime'] as String, + createTime: json['createTime'] as String, + createUser: json['createUser'] as num, + description: json['description'] as String, + id: json['id'] as num, + image: json['image'] as String, + isDelete: json['isDelete'] as num, + isNeedSecurityDeposit: json['isNeedSecurityDeposit'] as num, + name: json['name'] as String, + promotionDetail: (json['promotionDetail'] as List) + ?.map((e) => e == null + ? null + : PromotionDetailBean.fromJson(e as Map)) + ?.toList(), + promotionPlan: json['promotionPlan'] as num, + promotionType: json['promotionType'] as num, + securityDeposit: json['securityDeposit'] as num, + status: json['status'] as num, + tag: json['tag'] as String, + updateTime: json['updateTime'] as String, + updateUser: json['updateUser'] as num, + ); +} + +Map _$PromotionToJson(Promotion instance) => { + 'activityEndTime': instance.activityEndTime, + 'activityStartTime': instance.activityStartTime, + 'applyEndTime': instance.applyEndTime, + 'applyStartTime': instance.applyStartTime, + 'createTime': instance.createTime, + 'createUser': instance.createUser, + 'description': instance.description, + 'id': instance.id, + 'image': instance.image, + 'isDelete': instance.isDelete, + 'isNeedSecurityDeposit': instance.isNeedSecurityDeposit, + 'name': instance.name, + 'promotionDetail': instance.promotionDetail, + 'promotionPlan': instance.promotionPlan, + 'promotionType': instance.promotionType, + 'securityDeposit': instance.securityDeposit, + 'status': instance.status, + 'tag': instance.tag, + 'updateTime': instance.updateTime, + 'updateUser': instance.updateUser, + }; + +PromotionDetailBean _$PromotionDetailBeanFromJson(Map json) { + return PromotionDetailBean(); +} + +Map _$PromotionDetailBeanToJson( + PromotionDetailBean instance) => + {}; diff --git a/lib/retrofit/data/store_info.g.dart b/lib/retrofit/data/store_info.g.dart new file mode 100644 index 00000000..cc644e90 --- /dev/null +++ b/lib/retrofit/data/store_info.g.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'store_info.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +StoreInfo _$StoreInfoFromJson(Map json) { + return StoreInfo( + address: json['address'] as String, + bannerList: (json['bannerList'] as List) + ?.map((e) => + e == null ? null : BannerData.fromJson(e as Map)) + ?.toList(), + city: json['city'] as String, + couponVOList: (json['couponVOList'] as List) + ?.map((e) => + e == null ? null : CouponVo.fromJson(e as Map)) + ?.toList(), + createTime: json['createTime'] as String, + createUser: json['createUser'] as String, + deliveryInfo: json['deliveryInfo'] == null + ? null + : DeliveryInfo.fromJson(json['deliveryInfo'] as Map), + district: json['district'] as String, + headMobile: json['headMobile'] as String, + headName: json['headName'] as String, + id: json['id'] as String, + isAutoSendRefundAddress: json['isAutoSendRefundAddress'] as num, + latitude: json['latitude'] as String, + logo: json['logo'] as String, + longitude: json['longitude'] as String, + mobile: json['mobile'] as String, + openEndTime: json['openEndTime'] as String, + openStartTime: json['openStartTime'] as String, + perCapitaConsumption: json['perCapitaConsumption'] as String, + posType: json['posType'] == null + ? null + : StoreType.fromJson(json['posType'] as Map), + promotionList: (json['promotionList'] as List) + ?.map((e) => + e == null ? null : Promotion.fromJson(e as Map)) + ?.toList(), + province: json['province'] as String, + refundAddress: json['refundAddress'] as String, + refundContact: json['refundContact'] as String, + refundTel: json['refundTel'] as String, + remark: json['remark'] as String, + shipAddress: json['shipAddress'] as String, + storeName: json['storeName'] as String, + tenantCode: json['tenantCode'] as String, + updateTime: json['updateTime'] as String, + updateUser: json['updateUser'] as String, + useErp: json['useErp'] as bool, + ); +} + +Map _$StoreInfoToJson(StoreInfo instance) => { + 'address': instance.address, + 'bannerList': instance.bannerList, + 'city': instance.city, + 'couponVOList': instance.couponVOList, + 'createTime': instance.createTime, + 'createUser': instance.createUser, + 'deliveryInfo': instance.deliveryInfo, + 'district': instance.district, + 'headMobile': instance.headMobile, + 'headName': instance.headName, + 'id': instance.id, + 'isAutoSendRefundAddress': instance.isAutoSendRefundAddress, + 'latitude': instance.latitude, + 'logo': instance.logo, + 'longitude': instance.longitude, + 'mobile': instance.mobile, + 'openEndTime': instance.openEndTime, + 'openStartTime': instance.openStartTime, + 'perCapitaConsumption': instance.perCapitaConsumption, + 'posType': instance.posType, + 'promotionList': instance.promotionList, + 'province': instance.province, + 'refundAddress': instance.refundAddress, + 'refundContact': instance.refundContact, + 'refundTel': instance.refundTel, + 'remark': instance.remark, + 'shipAddress': instance.shipAddress, + 'storeName': instance.storeName, + 'tenantCode': instance.tenantCode, + 'updateTime': instance.updateTime, + 'updateUser': instance.updateUser, + 'useErp': instance.useErp, + }; diff --git a/lib/retrofit/retrofit_api.g.dart b/lib/retrofit/retrofit_api.g.dart new file mode 100644 index 00000000..ddfa6b3b --- /dev/null +++ b/lib/retrofit/retrofit_api.g.dart @@ -0,0 +1,542 @@ +// 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://192.168.10.236:8766/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(param) async { + ArgumentError.checkNotNull(param, 'param'); + const _extra = {}; + final queryParameters = {}; + final _data = {}; + _data.addAll(param ?? {}); + final _result = await _dio.request>( + '/member/receiveCoupon', + queryParameters: queryParameters, + options: RequestOptions( + method: 'POST', + 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; + } +}