fmk
4 years ago
7 changed files with 869 additions and 0 deletions
@ -0,0 +1,38 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'banner.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
BannerData _$BannerDataFromJson(Map<String, dynamic> 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<String, dynamic> _$BannerDataToJson(BannerData instance) => |
||||
<String, dynamic>{ |
||||
'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, |
||||
}; |
@ -0,0 +1,33 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'brand_data.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
BrandData _$BrandDataFromJson(Map<String, dynamic> json) { |
||||
return BrandData() |
||||
..bannerList = (json['bannerList'] as List) |
||||
?.map((e) => |
||||
e == null ? null : BannerData.fromJson(e as Map<String, dynamic>)) |
||||
?.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<String, dynamic> _$BrandDataToJson(BrandData instance) => <String, dynamic>{ |
||||
'bannerList': instance.bannerList, |
||||
'company': instance.company, |
||||
'companyDesc': instance.companyDesc, |
||||
'originAvatar': instance.originAvatar, |
||||
'originDesc': instance.originDesc, |
||||
'originator': instance.originator, |
||||
'contents': instance.contents, |
||||
'ideals': instance.ideals, |
||||
}; |
@ -0,0 +1,67 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'coupon_vo.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
CouponVo _$CouponVoFromJson(Map<String, dynamic> 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<String, dynamic> _$CouponVoToJson(CouponVo instance) => <String, dynamic>{ |
||||
'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, |
||||
}; |
@ -0,0 +1,30 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'delivery_info.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
DeliveryInfo _$DeliveryInfoFromJson(Map<String, dynamic> 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<String, dynamic> _$DeliveryInfoToJson(DeliveryInfo instance) => |
||||
<String, dynamic>{ |
||||
'dadaRegStatus': instance.dadaRegStatus, |
||||
'dadaSourceId': instance.dadaSourceId, |
||||
'dadaStatus': instance.dadaStatus, |
||||
'dianwodaRegStatus': instance.dianwodaRegStatus, |
||||
'dianwodaStatus': instance.dianwodaStatus, |
||||
'meituanRegStatus': instance.meituanRegStatus, |
||||
'meituanStatus': instance.meituanStatus, |
||||
}; |
@ -0,0 +1,67 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'promotion.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
Promotion _$PromotionFromJson(Map<String, dynamic> 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<String, dynamic>)) |
||||
?.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<String, dynamic> _$PromotionToJson(Promotion instance) => <String, dynamic>{ |
||||
'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<String, dynamic> json) { |
||||
return PromotionDetailBean(); |
||||
} |
||||
|
||||
Map<String, dynamic> _$PromotionDetailBeanToJson( |
||||
PromotionDetailBean instance) => |
||||
<String, dynamic>{}; |
@ -0,0 +1,92 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||
|
||||
part of 'store_info.dart'; |
||||
|
||||
// ************************************************************************** |
||||
// JsonSerializableGenerator |
||||
// ************************************************************************** |
||||
|
||||
StoreInfo _$StoreInfoFromJson(Map<String, dynamic> json) { |
||||
return StoreInfo( |
||||
address: json['address'] as String, |
||||
bannerList: (json['bannerList'] as List) |
||||
?.map((e) => |
||||
e == null ? null : BannerData.fromJson(e as Map<String, dynamic>)) |
||||
?.toList(), |
||||
city: json['city'] as String, |
||||
couponVOList: (json['couponVOList'] as List) |
||||
?.map((e) => |
||||
e == null ? null : CouponVo.fromJson(e as Map<String, dynamic>)) |
||||
?.toList(), |
||||
createTime: json['createTime'] as String, |
||||
createUser: json['createUser'] as String, |
||||
deliveryInfo: json['deliveryInfo'] == null |
||||
? null |
||||
: DeliveryInfo.fromJson(json['deliveryInfo'] as Map<String, dynamic>), |
||||
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<String, dynamic>), |
||||
promotionList: (json['promotionList'] as List) |
||||
?.map((e) => |
||||
e == null ? null : Promotion.fromJson(e as Map<String, dynamic>)) |
||||
?.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<String, dynamic> _$StoreInfoToJson(StoreInfo instance) => <String, dynamic>{ |
||||
'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, |
||||
}; |
@ -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<BaseData> upload(data, folderId) async { |
||||
ArgumentError.checkNotNull(data, 'data'); |
||||
ArgumentError.checkNotNull(folderId, 'folderId'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
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<Map<String, dynamic>>('/file/upload', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<dynamic> 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 = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
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: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = _result.data; |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> memberLogin(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/auth/platform/memberLogin', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> sendVerify(mobile) async { |
||||
ArgumentError.checkNotNull(mobile, 'mobile'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/auth/sendVerify/$mobile', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditGoods(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditGoods/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditGoodsById(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/creditGoods/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryInfo() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/info', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> editInfo(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/editMemberInfo', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> signInInfo() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/signInInfo', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> signIn() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/signIn', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> recharge(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/member/recharge', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> receiveCoupon(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/member/receiveCoupon', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrderList(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrder(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/create', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> addAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/add', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> deleteAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/delete', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryAddress(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/address/detail/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryMemberAddress() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/address/queryMemberAddress', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> updateAddress(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/address/update', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryCoupon(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/coupon/centreList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryCard(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/coupon/packageList', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryStore(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>('/store/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> informationList(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/information/list', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> informationInfo(param) async { |
||||
ArgumentError.checkNotNull(param, 'param'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
_data.addAll(param ?? <String, dynamic>{}); |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/information/{id}', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'POST', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> creditOrderReceive(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>( |
||||
'/creditOrder/receive/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryHome() async { |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/home/home', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
|
||||
@override |
||||
Future<BaseData> queryStoreInfo(id) async { |
||||
ArgumentError.checkNotNull(id, 'id'); |
||||
const _extra = <String, dynamic>{}; |
||||
final queryParameters = <String, dynamic>{}; |
||||
final _data = <String, dynamic>{}; |
||||
final _result = await _dio.request<Map<String, dynamic>>('/store/$id', |
||||
queryParameters: queryParameters, |
||||
options: RequestOptions( |
||||
method: 'GET', |
||||
headers: <String, dynamic>{}, |
||||
extra: _extra, |
||||
baseUrl: baseUrl), |
||||
data: _data); |
||||
final value = BaseData.fromJson(_result.data); |
||||
return value; |
||||
} |
||||
} |
Loading…
Reference in new issue