fmk
3 years ago
14 changed files with 989 additions and 1906 deletions
@ -1,37 +0,0 @@ |
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
||||||
|
|
||||||
part of 'base_data.dart'; |
|
||||||
|
|
||||||
// ************************************************************************** |
|
||||||
// JsonSerializableGenerator |
|
||||||
// ************************************************************************** |
|
||||||
|
|
||||||
BaseData<T> _$BaseDataFromJson<T>( |
|
||||||
Map<String, dynamic> json, |
|
||||||
T Function(Object json) fromJsonT, |
|
||||||
) { |
|
||||||
return BaseData<T>() |
|
||||||
..code = json['code'] as int |
|
||||||
..data = fromJsonT(json['data']) |
|
||||||
..extra = json['extra'] |
|
||||||
..isError = json['isError'] as bool |
|
||||||
..isSuccess = json['isSuccess'] as bool |
|
||||||
..msg = json['msg'] as String |
|
||||||
..path = json['path'] as String |
|
||||||
..timestamp = json['timestamp'] as String; |
|
||||||
} |
|
||||||
|
|
||||||
Map<String, dynamic> _$BaseDataToJson<T>( |
|
||||||
BaseData<T> instance, |
|
||||||
Object Function(T value) toJsonT, |
|
||||||
) => |
|
||||||
<String, dynamic>{ |
|
||||||
'code': instance.code, |
|
||||||
'data': toJsonT(instance.data), |
|
||||||
'extra': instance.extra, |
|
||||||
'isError': instance.isError, |
|
||||||
'isSuccess': instance.isSuccess, |
|
||||||
'msg': instance.msg, |
|
||||||
'path': instance.path, |
|
||||||
'timestamp': instance.timestamp, |
|
||||||
}; |
|
@ -0,0 +1,713 @@ |
|||||||
|
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
||||||
|
import 'package:huixiang/retrofit/data/settleOrderInfo.dart'; |
||||||
|
|
||||||
|
class MinOrderInfo { |
||||||
|
MinOrderInfo({ |
||||||
|
String id, |
||||||
|
String createTime, |
||||||
|
String createUser, |
||||||
|
String updateTime, |
||||||
|
String updateUser, |
||||||
|
String tenantCode, |
||||||
|
String storeId, |
||||||
|
String storeName, |
||||||
|
String tableId, |
||||||
|
int orderType, |
||||||
|
bool clearTable, |
||||||
|
String mid, |
||||||
|
String parentId, |
||||||
|
String parentCode, |
||||||
|
String orderCode, |
||||||
|
String dayFlowCode, |
||||||
|
int orderStatus, |
||||||
|
int sendStatus, |
||||||
|
int payStatus, |
||||||
|
String memberAccount, |
||||||
|
String logisticsId, |
||||||
|
String shipperCode, |
||||||
|
String logisticsName, |
||||||
|
String logisticsNum, |
||||||
|
dynamic logisticsCase, |
||||||
|
int refundStatus, |
||||||
|
dynamic addressExt, |
||||||
|
String postFee, |
||||||
|
String orderSum, |
||||||
|
String paySum, |
||||||
|
String paySumSub, |
||||||
|
String accountPay, |
||||||
|
String couponSubPrice, |
||||||
|
String customPrice, |
||||||
|
String removeDecimal, |
||||||
|
bool isSubscribe, |
||||||
|
dynamic subcribeTime, |
||||||
|
dynamic sendTime, |
||||||
|
dynamic confirmTime, |
||||||
|
dynamic returnMoneyTime, |
||||||
|
String notes, |
||||||
|
dynamic prepayId, |
||||||
|
dynamic payTime, |
||||||
|
int payChannel, |
||||||
|
dynamic payNum, |
||||||
|
String promotionId, |
||||||
|
String couponId, |
||||||
|
int isDelete, |
||||||
|
int isTakeOut, |
||||||
|
int batch, |
||||||
|
String orderDiscountPrice, |
||||||
|
String dishesDiscountPrice, |
||||||
|
String orderPercentPrice, |
||||||
|
String finalPayPrice, |
||||||
|
String activityNoPrice, |
||||||
|
String activityDiscountPrice, |
||||||
|
String totalDiscountPrice, |
||||||
|
int orderSource, |
||||||
|
dynamic address, |
||||||
|
dynamic discountPercent, |
||||||
|
dynamic discountAmount, |
||||||
|
dynamic discountType, |
||||||
|
dynamic discountMoney, |
||||||
|
dynamic overTime, |
||||||
|
List<OrderProductListBean> orderProductVOList, |
||||||
|
dynamic moneyReturnList, |
||||||
|
dynamic goodsReturnList, |
||||||
|
dynamic moneyReturnVOList, |
||||||
|
dynamic goodsReturnVOList, |
||||||
|
dynamic moneyReturnActionHistoryList, |
||||||
|
dynamic goodsReturnActionHistoryList, |
||||||
|
String currentTime, |
||||||
|
dynamic tablePrice, |
||||||
|
String tableName, |
||||||
|
String balance, |
||||||
|
String money, |
||||||
|
dynamic prodNum, |
||||||
|
bool onCredit, |
||||||
|
OrderInfoVo orderInfoVo, |
||||||
|
String endPayTime, |
||||||
|
String orderSumPrice,}){ |
||||||
|
this.id = id; |
||||||
|
this.createTime = createTime; |
||||||
|
this.createUser = createUser; |
||||||
|
this.updateTime = updateTime; |
||||||
|
this.updateUser = updateUser; |
||||||
|
this.tenantCode = tenantCode; |
||||||
|
this.storeId = storeId; |
||||||
|
this.storeName = storeName; |
||||||
|
this.tableId = tableId; |
||||||
|
this.orderType = orderType; |
||||||
|
this.clearTable = clearTable; |
||||||
|
this.mid = mid; |
||||||
|
this.parentId = parentId; |
||||||
|
this.parentCode = parentCode; |
||||||
|
this.orderCode = orderCode; |
||||||
|
this.dayFlowCode = dayFlowCode; |
||||||
|
this.orderStatus = orderStatus; |
||||||
|
this.sendStatus = sendStatus; |
||||||
|
this.payStatus = payStatus; |
||||||
|
this.memberAccount = memberAccount; |
||||||
|
this.logisticsId = logisticsId; |
||||||
|
this.shipperCode = shipperCode; |
||||||
|
this.logisticsName = logisticsName; |
||||||
|
this.logisticsNum = logisticsNum; |
||||||
|
this.logisticsCase = logisticsCase; |
||||||
|
this.refundStatus = refundStatus; |
||||||
|
this.addressExt = addressExt; |
||||||
|
this.postFee = postFee; |
||||||
|
this.orderSum = orderSum; |
||||||
|
this.paySum = paySum; |
||||||
|
this.paySumSub = paySumSub; |
||||||
|
this.accountPay = accountPay; |
||||||
|
this.couponSubPrice = couponSubPrice; |
||||||
|
this.customPrice = customPrice; |
||||||
|
this.removeDecimal = removeDecimal; |
||||||
|
this.isSubscribe = isSubscribe; |
||||||
|
this.subcribeTime = subcribeTime; |
||||||
|
this.sendTime = sendTime; |
||||||
|
this.confirmTime = confirmTime; |
||||||
|
this.returnMoneyTime = returnMoneyTime; |
||||||
|
this.notes = notes; |
||||||
|
this.prepayId = prepayId; |
||||||
|
this.payTime = payTime; |
||||||
|
this.payChannel = payChannel; |
||||||
|
this.payNum = payNum; |
||||||
|
this.promotionId = promotionId; |
||||||
|
this.couponId = couponId; |
||||||
|
this.isDelete = isDelete; |
||||||
|
this.isTakeOut = isTakeOut; |
||||||
|
this.batch = batch; |
||||||
|
this.orderDiscountPrice = orderDiscountPrice; |
||||||
|
this.dishesDiscountPrice = dishesDiscountPrice; |
||||||
|
this.orderPercentPrice = orderPercentPrice; |
||||||
|
this.finalPayPrice = finalPayPrice; |
||||||
|
this.activityNoPrice = activityNoPrice; |
||||||
|
this.activityDiscountPrice = activityDiscountPrice; |
||||||
|
this.totalDiscountPrice = totalDiscountPrice; |
||||||
|
this.orderSource = orderSource; |
||||||
|
this.address = address; |
||||||
|
this.discountPercent = discountPercent; |
||||||
|
this.discountAmount = discountAmount; |
||||||
|
this.discountType = discountType; |
||||||
|
this.discountMoney = discountMoney; |
||||||
|
this.overTime = overTime; |
||||||
|
this.orderProductVOList = orderProductVOList; |
||||||
|
this.moneyReturnList = moneyReturnList; |
||||||
|
this.goodsReturnList = goodsReturnList; |
||||||
|
this.moneyReturnVOList = moneyReturnVOList; |
||||||
|
this.goodsReturnVOList = goodsReturnVOList; |
||||||
|
this.moneyReturnActionHistoryList = moneyReturnActionHistoryList; |
||||||
|
this.goodsReturnActionHistoryList = goodsReturnActionHistoryList; |
||||||
|
this.currentTime = currentTime; |
||||||
|
this.tablePrice = tablePrice; |
||||||
|
this.tableName = tableName; |
||||||
|
this.balance = balance; |
||||||
|
this.money = money; |
||||||
|
this.prodNum = prodNum; |
||||||
|
this.onCredit = onCredit; |
||||||
|
this.orderInfoVo = orderInfoVo; |
||||||
|
this.endPayTime = endPayTime; |
||||||
|
this.orderSumPrice = orderSumPrice; |
||||||
|
} |
||||||
|
|
||||||
|
MinOrderInfo.fromJson(dynamic json) { |
||||||
|
this.id = json['id']; |
||||||
|
this.createTime = json['createTime']; |
||||||
|
this.createUser = json['createUser']; |
||||||
|
this.updateTime = json['updateTime']; |
||||||
|
this.updateUser = json['updateUser']; |
||||||
|
this.tenantCode = json['tenantCode']; |
||||||
|
this.storeId = json['storeId']; |
||||||
|
this.storeName = json['storeName']; |
||||||
|
this.tableId = json['tableId']; |
||||||
|
this.orderType = json['orderType']; |
||||||
|
this.clearTable = json['clearTable']; |
||||||
|
this.mid = json['mid']; |
||||||
|
this.parentId = json['parentId']; |
||||||
|
this.parentCode = json['parentCode']; |
||||||
|
this.orderCode = json['orderCode']; |
||||||
|
this.dayFlowCode = json['dayFlowCode']; |
||||||
|
this.orderStatus = json['orderStatus']; |
||||||
|
this.sendStatus = json['sendStatus']; |
||||||
|
this.payStatus = json['payStatus']; |
||||||
|
this.memberAccount = json['memberAccount']; |
||||||
|
this.logisticsId = json['logisticsId']; |
||||||
|
this.shipperCode = json['shipperCode']; |
||||||
|
this.logisticsName = json['logisticsName']; |
||||||
|
this.logisticsNum = json['logisticsNum']; |
||||||
|
this.logisticsCase = json['logisticsCase']; |
||||||
|
this.refundStatus = json['refundStatus']; |
||||||
|
this.addressExt = json['addressExt']; |
||||||
|
this.postFee = json['postFee']; |
||||||
|
this.orderSum = json['orderSum']; |
||||||
|
this.paySum = json['paySum']; |
||||||
|
this.paySumSub = json['paySumSub']; |
||||||
|
this.accountPay = json['accountPay']; |
||||||
|
this.couponSubPrice = json['couponSubPrice']; |
||||||
|
this.customPrice = json['customPrice']; |
||||||
|
this.removeDecimal = json['removeDecimal']; |
||||||
|
this.isSubscribe = json['isSubscribe']; |
||||||
|
this.subcribeTime = json['subcribeTime']; |
||||||
|
this.sendTime = json['sendTime']; |
||||||
|
this.confirmTime = json['confirmTime']; |
||||||
|
this.returnMoneyTime = json['returnMoneyTime']; |
||||||
|
this.notes = json['notes']; |
||||||
|
this.prepayId = json['prepayId']; |
||||||
|
this.payTime = json['payTime']; |
||||||
|
this.payChannel = json['payChannel']; |
||||||
|
this.payNum = json['payNum']; |
||||||
|
this.promotionId = json['promotionId']; |
||||||
|
this.couponId = json['couponId']; |
||||||
|
this.isDelete = json['isDelete']; |
||||||
|
this.isTakeOut = json['isTakeOut']; |
||||||
|
this.batch = json['batch']; |
||||||
|
this.orderDiscountPrice = json['orderDiscountPrice']; |
||||||
|
this.dishesDiscountPrice = json['dishesDiscountPrice']; |
||||||
|
this.orderPercentPrice = json['orderPercentPrice']; |
||||||
|
this.finalPayPrice = json['finalPayPrice']; |
||||||
|
this.activityNoPrice = json['activityNoPrice']; |
||||||
|
this.activityDiscountPrice = json['activityDiscountPrice']; |
||||||
|
this.totalDiscountPrice = json['totalDiscountPrice']; |
||||||
|
this.orderSource = json['orderSource']; |
||||||
|
this.address = json['address']; |
||||||
|
this.discountPercent = json['discountPercent']; |
||||||
|
this.discountAmount = json['discountAmount']; |
||||||
|
this.discountType = json['discountType']; |
||||||
|
this.discountMoney = json['discountMoney']; |
||||||
|
this.overTime = json['overTime']; |
||||||
|
if (json['orderProductVOList'] != null) { |
||||||
|
this.orderProductVOList = []; |
||||||
|
json['orderProductVOList'].forEach((v) { |
||||||
|
this.orderProductVOList.add(OrderProductListBean.fromJson(v)); |
||||||
|
}); |
||||||
|
} |
||||||
|
this.moneyReturnList = json['moneyReturnList']; |
||||||
|
this.goodsReturnList = json['goodsReturnList']; |
||||||
|
this.moneyReturnVOList = json['moneyReturnVOList']; |
||||||
|
this.goodsReturnVOList = json['goodsReturnVOList']; |
||||||
|
this.moneyReturnActionHistoryList = json['moneyReturnActionHistoryList']; |
||||||
|
this.goodsReturnActionHistoryList = json['goodsReturnActionHistoryList']; |
||||||
|
this.currentTime = json['currentTime']; |
||||||
|
this.tablePrice = json['tablePrice']; |
||||||
|
this.tableName = json['tableName']; |
||||||
|
this.balance = json['balance']; |
||||||
|
this.money = json['money']; |
||||||
|
this.prodNum = json['prodNum']; |
||||||
|
this.onCredit = json['onCredit']; |
||||||
|
this.orderInfoVo = json['orderInfoVo'] != null ? OrderInfoVo.fromJson(json['orderInfoVo']) : null; |
||||||
|
this.endPayTime = json['endPayTime']; |
||||||
|
this.orderSumPrice = json['orderSumPrice']; |
||||||
|
} |
||||||
|
String id; |
||||||
|
String createTime; |
||||||
|
String createUser; |
||||||
|
String updateTime; |
||||||
|
String updateUser; |
||||||
|
String tenantCode; |
||||||
|
String storeId; |
||||||
|
String storeName; |
||||||
|
String tableId; |
||||||
|
int orderType; |
||||||
|
bool clearTable; |
||||||
|
String mid; |
||||||
|
String parentId; |
||||||
|
String parentCode; |
||||||
|
String orderCode; |
||||||
|
String dayFlowCode; |
||||||
|
int orderStatus; |
||||||
|
int sendStatus; |
||||||
|
int payStatus; |
||||||
|
String memberAccount; |
||||||
|
String logisticsId; |
||||||
|
String shipperCode; |
||||||
|
String logisticsName; |
||||||
|
String logisticsNum; |
||||||
|
dynamic logisticsCase; |
||||||
|
int refundStatus; |
||||||
|
dynamic addressExt; |
||||||
|
String postFee; |
||||||
|
String orderSum; |
||||||
|
String paySum; |
||||||
|
String paySumSub; |
||||||
|
String accountPay; |
||||||
|
String couponSubPrice; |
||||||
|
String customPrice; |
||||||
|
String removeDecimal; |
||||||
|
bool isSubscribe; |
||||||
|
dynamic subcribeTime; |
||||||
|
dynamic sendTime; |
||||||
|
dynamic confirmTime; |
||||||
|
dynamic returnMoneyTime; |
||||||
|
String notes; |
||||||
|
dynamic prepayId; |
||||||
|
dynamic payTime; |
||||||
|
int payChannel; |
||||||
|
dynamic payNum; |
||||||
|
String promotionId; |
||||||
|
String couponId; |
||||||
|
int isDelete; |
||||||
|
int isTakeOut; |
||||||
|
int batch; |
||||||
|
String orderDiscountPrice; |
||||||
|
String dishesDiscountPrice; |
||||||
|
String orderPercentPrice; |
||||||
|
String finalPayPrice; |
||||||
|
String activityNoPrice; |
||||||
|
String activityDiscountPrice; |
||||||
|
String totalDiscountPrice; |
||||||
|
int orderSource; |
||||||
|
dynamic address; |
||||||
|
dynamic discountPercent; |
||||||
|
dynamic discountAmount; |
||||||
|
dynamic discountType; |
||||||
|
dynamic discountMoney; |
||||||
|
dynamic overTime; |
||||||
|
List<OrderProductListBean> orderProductVOList; |
||||||
|
dynamic moneyReturnList; |
||||||
|
dynamic goodsReturnList; |
||||||
|
dynamic moneyReturnVOList; |
||||||
|
dynamic goodsReturnVOList; |
||||||
|
dynamic moneyReturnActionHistoryList; |
||||||
|
dynamic goodsReturnActionHistoryList; |
||||||
|
String currentTime; |
||||||
|
dynamic tablePrice; |
||||||
|
String tableName; |
||||||
|
String balance; |
||||||
|
String money; |
||||||
|
dynamic prodNum; |
||||||
|
bool onCredit; |
||||||
|
OrderInfoVo orderInfoVo; |
||||||
|
String endPayTime; |
||||||
|
String orderSumPrice; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = this.id; |
||||||
|
map['createTime'] = this.createTime; |
||||||
|
map['createUser'] = this.createUser; |
||||||
|
map['updateTime'] = this.updateTime; |
||||||
|
map['updateUser'] = this.updateUser; |
||||||
|
map['tenantCode'] = this.tenantCode; |
||||||
|
map['storeId'] = this.storeId; |
||||||
|
map['storeName'] = this.storeName; |
||||||
|
map['tableId'] = this.tableId; |
||||||
|
map['orderType'] = this.orderType; |
||||||
|
map['clearTable'] = this.clearTable; |
||||||
|
map['mid'] = this.mid; |
||||||
|
map['parentId'] = this.parentId; |
||||||
|
map['parentCode'] = this.parentCode; |
||||||
|
map['orderCode'] = this.orderCode; |
||||||
|
map['dayFlowCode'] = this.dayFlowCode; |
||||||
|
map['orderStatus'] = this.orderStatus; |
||||||
|
map['sendStatus'] = this.sendStatus; |
||||||
|
map['payStatus'] = this.payStatus; |
||||||
|
map['memberAccount'] = this.memberAccount; |
||||||
|
map['logisticsId'] = this.logisticsId; |
||||||
|
map['shipperCode'] = this.shipperCode; |
||||||
|
map['logisticsName'] = this.logisticsName; |
||||||
|
map['logisticsNum'] = this.logisticsNum; |
||||||
|
map['logisticsCase'] = this.logisticsCase; |
||||||
|
map['refundStatus'] = this.refundStatus; |
||||||
|
map['addressExt'] = this.addressExt; |
||||||
|
map['postFee'] = this.postFee; |
||||||
|
map['orderSum'] = this.orderSum; |
||||||
|
map['paySum'] = this.paySum; |
||||||
|
map['paySumSub'] = this.paySumSub; |
||||||
|
map['accountPay'] = this.accountPay; |
||||||
|
map['couponSubPrice'] = this.couponSubPrice; |
||||||
|
map['customPrice'] = this.customPrice; |
||||||
|
map['removeDecimal'] = this.removeDecimal; |
||||||
|
map['isSubscribe'] = this.isSubscribe; |
||||||
|
map['subcribeTime'] = this.subcribeTime; |
||||||
|
map['sendTime'] = this.sendTime; |
||||||
|
map['confirmTime'] = this.confirmTime; |
||||||
|
map['returnMoneyTime'] = this.returnMoneyTime; |
||||||
|
map['notes'] = this.notes; |
||||||
|
map['prepayId'] = this.prepayId; |
||||||
|
map['payTime'] = this.payTime; |
||||||
|
map['payChannel'] = this.payChannel; |
||||||
|
map['payNum'] = this.payNum; |
||||||
|
map['promotionId'] = this.promotionId; |
||||||
|
map['couponId'] = this.couponId; |
||||||
|
map['isDelete'] = this.isDelete; |
||||||
|
map['isTakeOut'] = this.isTakeOut; |
||||||
|
map['batch'] = this.batch; |
||||||
|
map['orderDiscountPrice'] = this.orderDiscountPrice; |
||||||
|
map['dishesDiscountPrice'] = this.dishesDiscountPrice; |
||||||
|
map['orderPercentPrice'] = this.orderPercentPrice; |
||||||
|
map['finalPayPrice'] = this.finalPayPrice; |
||||||
|
map['activityNoPrice'] = this.activityNoPrice; |
||||||
|
map['activityDiscountPrice'] = this.activityDiscountPrice; |
||||||
|
map['totalDiscountPrice'] = this.totalDiscountPrice; |
||||||
|
map['orderSource'] = this.orderSource; |
||||||
|
map['address'] = this.address; |
||||||
|
map['discountPercent'] = this.discountPercent; |
||||||
|
map['discountAmount'] = this.discountAmount; |
||||||
|
map['discountType'] = this.discountType; |
||||||
|
map['discountMoney'] = this.discountMoney; |
||||||
|
map['overTime'] = this.overTime; |
||||||
|
if (this.orderProductVOList != null) { |
||||||
|
map['orderProductVOList'] = this.orderProductVOList.map((v) => v.toJson()).toList(); |
||||||
|
} |
||||||
|
map['moneyReturnList'] = this.moneyReturnList; |
||||||
|
map['goodsReturnList'] = this.goodsReturnList; |
||||||
|
map['moneyReturnVOList'] = this.moneyReturnVOList; |
||||||
|
map['goodsReturnVOList'] = this.goodsReturnVOList; |
||||||
|
map['moneyReturnActionHistoryList'] = this.moneyReturnActionHistoryList; |
||||||
|
map['goodsReturnActionHistoryList'] = this.goodsReturnActionHistoryList; |
||||||
|
map['currentTime'] = this.currentTime; |
||||||
|
map['tablePrice'] = this.tablePrice; |
||||||
|
map['tableName'] = this.tableName; |
||||||
|
map['balance'] = this.balance; |
||||||
|
map['money'] = this.money; |
||||||
|
map['prodNum'] = this.prodNum; |
||||||
|
map['onCredit'] = this.onCredit; |
||||||
|
if (this.orderInfoVo != null) { |
||||||
|
map['orderInfoVo'] = this.orderInfoVo.toJson(); |
||||||
|
} |
||||||
|
map['endPayTime'] = this.endPayTime; |
||||||
|
map['orderSumPrice'] = this.orderSumPrice; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// orderNum : 0 |
||||||
|
/// productNum : 0 |
||||||
|
/// mins : 1 |
||||||
|
/// memberVO : {"vipNo":"1406879717390286848","nickname":"","headimg":"","userType":true,"sex":"0","level":1,"addressId":null,"remark":null,"phone":"15827991714","createTime":"2021-07-10 15:44:23","birth":"1993-02-19","balance":"0.00","money":"9999608.09","points":"1147","isBind":true,"memberRankVo":{"id":"1402947503522840576","rankName":"黄金会员","rankOrigin":8888,"rankContent":"","rankImg":"","status":true,"nextId":"1402947503522840577","nextName":"钻石会员","nextOrigin":null},"age":28} |
||||||
|
/// postAge : "0.00" |
||||||
|
/// price : "208.00" |
||||||
|
/// orderSum : "208.00" |
||||||
|
/// discountAmount : null |
||||||
|
/// promotionInfoList : null |
||||||
|
/// couponList : null |
||||||
|
/// threshold : "0" |
||||||
|
/// freePostAge : "0" |
||||||
|
/// orderProductList : null |
||||||
|
|
||||||
|
class OrderInfoVo { |
||||||
|
OrderInfoVo({ |
||||||
|
int orderNum, |
||||||
|
int productNum, |
||||||
|
int mins, |
||||||
|
MemberVO memberVO, |
||||||
|
String postAge, |
||||||
|
String price, |
||||||
|
String orderSum, |
||||||
|
dynamic discountAmount, |
||||||
|
dynamic promotionInfoList, |
||||||
|
dynamic couponList, |
||||||
|
String threshold, |
||||||
|
String freePostAge, |
||||||
|
dynamic orderProductList,}){ |
||||||
|
this.orderNum = orderNum; |
||||||
|
this.productNum = productNum; |
||||||
|
this.mins = mins; |
||||||
|
this.memberVO = memberVO; |
||||||
|
this.postAge = postAge; |
||||||
|
this.price = price; |
||||||
|
this.orderSum = orderSum; |
||||||
|
this.discountAmount = discountAmount; |
||||||
|
this.promotionInfoList = promotionInfoList; |
||||||
|
this.couponList = couponList; |
||||||
|
this.threshold = threshold; |
||||||
|
this.freePostAge = freePostAge; |
||||||
|
this.orderProductList = orderProductList; |
||||||
|
} |
||||||
|
|
||||||
|
OrderInfoVo.fromJson(dynamic json) { |
||||||
|
this.orderNum = json['orderNum']; |
||||||
|
this.productNum = json['productNum']; |
||||||
|
this.mins = json['mins']; |
||||||
|
this.memberVO = json['memberVO'] != null ? MemberVO.fromJson(json['memberVO']) : null; |
||||||
|
this.postAge = json['postAge']; |
||||||
|
this.price = json['price']; |
||||||
|
this.orderSum = json['orderSum']; |
||||||
|
this.discountAmount = json['discountAmount']; |
||||||
|
this.promotionInfoList = json['promotionInfoList']; |
||||||
|
this.couponList = json['couponList']; |
||||||
|
this.threshold = json['threshold']; |
||||||
|
this.freePostAge = json['freePostAge']; |
||||||
|
this.orderProductList = json['orderProductList']; |
||||||
|
} |
||||||
|
int orderNum; |
||||||
|
int productNum; |
||||||
|
int mins; |
||||||
|
MemberVO memberVO; |
||||||
|
String postAge; |
||||||
|
String price; |
||||||
|
String orderSum; |
||||||
|
dynamic discountAmount; |
||||||
|
dynamic promotionInfoList; |
||||||
|
dynamic couponList; |
||||||
|
String threshold; |
||||||
|
String freePostAge; |
||||||
|
dynamic orderProductList; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['orderNum'] = this.orderNum; |
||||||
|
map['productNum'] = this.productNum; |
||||||
|
map['mins'] = this.mins; |
||||||
|
if (this.memberVO != null) { |
||||||
|
map['memberVO'] = this.memberVO.toJson(); |
||||||
|
} |
||||||
|
map['postAge'] = this.postAge; |
||||||
|
map['price'] = this.price; |
||||||
|
map['orderSum'] = this.orderSum; |
||||||
|
map['discountAmount'] = this.discountAmount; |
||||||
|
map['promotionInfoList'] = this.promotionInfoList; |
||||||
|
map['couponList'] = this.couponList; |
||||||
|
map['threshold'] = this.threshold; |
||||||
|
map['freePostAge'] = this.freePostAge; |
||||||
|
map['orderProductList'] = this.orderProductList; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// vipNo : "1406879717390286848" |
||||||
|
/// nickname : "" |
||||||
|
/// headimg : "" |
||||||
|
/// userType : true |
||||||
|
/// sex : "0" |
||||||
|
/// level : 1 |
||||||
|
/// addressId : null |
||||||
|
/// remark : null |
||||||
|
/// phone : "15827991714" |
||||||
|
/// createTime : "2021-07-10 15:44:23" |
||||||
|
/// birth : "1993-02-19" |
||||||
|
/// balance : "0.00" |
||||||
|
/// money : "9999608.09" |
||||||
|
/// points : "1147" |
||||||
|
/// isBind : true |
||||||
|
/// memberRankVo : {"id":"1402947503522840576","rankName":"黄金会员","rankOrigin":8888,"rankContent":"","rankImg":"","status":true,"nextId":"1402947503522840577","nextName":"钻石会员","nextOrigin":null} |
||||||
|
/// age : 28 |
||||||
|
|
||||||
|
class MemberVO { |
||||||
|
MemberVO({ |
||||||
|
String vipNo, |
||||||
|
String nickname, |
||||||
|
String headimg, |
||||||
|
bool userType, |
||||||
|
String sex, |
||||||
|
int level, |
||||||
|
dynamic addressId, |
||||||
|
dynamic remark, |
||||||
|
String phone, |
||||||
|
String createTime, |
||||||
|
String birth, |
||||||
|
String balance, |
||||||
|
String money, |
||||||
|
String points, |
||||||
|
bool isBind, |
||||||
|
MemberRankVo memberRankVo, |
||||||
|
int age,}){ |
||||||
|
this.vipNo = vipNo; |
||||||
|
this.nickname = nickname; |
||||||
|
this.headimg = headimg; |
||||||
|
this.userType = userType; |
||||||
|
this.sex = sex; |
||||||
|
this.level = level; |
||||||
|
this.addressId = addressId; |
||||||
|
this.remark = remark; |
||||||
|
this.phone = phone; |
||||||
|
this.createTime = createTime; |
||||||
|
this.birth = birth; |
||||||
|
this.balance = balance; |
||||||
|
this.money = money; |
||||||
|
this.points = points; |
||||||
|
this.isBind = isBind; |
||||||
|
this.memberRankVo = memberRankVo; |
||||||
|
this.age = age; |
||||||
|
} |
||||||
|
|
||||||
|
MemberVO.fromJson(dynamic json) { |
||||||
|
this.vipNo = json['vipNo']; |
||||||
|
this.nickname = json['nickname']; |
||||||
|
this.headimg = json['headimg']; |
||||||
|
this.userType = json['userType']; |
||||||
|
this.sex = json['sex']; |
||||||
|
this.level = json['level']; |
||||||
|
this.addressId = json['addressId']; |
||||||
|
this.remark = json['remark']; |
||||||
|
this.phone = json['phone']; |
||||||
|
this.createTime = json['createTime']; |
||||||
|
this.birth = json['birth']; |
||||||
|
this.balance = json['balance']; |
||||||
|
this.money = json['money']; |
||||||
|
this.points = json['points']; |
||||||
|
this.isBind = json['isBind']; |
||||||
|
this.memberRankVo = json['memberRankVo'] != null ? MemberRankVo.fromJson(json['memberRankVo']) : null; |
||||||
|
this.age = json['age']; |
||||||
|
} |
||||||
|
String vipNo; |
||||||
|
String nickname; |
||||||
|
String headimg; |
||||||
|
bool userType; |
||||||
|
String sex; |
||||||
|
int level; |
||||||
|
dynamic addressId; |
||||||
|
dynamic remark; |
||||||
|
String phone; |
||||||
|
String createTime; |
||||||
|
String birth; |
||||||
|
String balance; |
||||||
|
String money; |
||||||
|
String points; |
||||||
|
bool isBind; |
||||||
|
MemberRankVo memberRankVo; |
||||||
|
int age; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['vipNo'] = this.vipNo; |
||||||
|
map['nickname'] = this.nickname; |
||||||
|
map['headimg'] = this.headimg; |
||||||
|
map['userType'] = this.userType; |
||||||
|
map['sex'] = this.sex; |
||||||
|
map['level'] = this.level; |
||||||
|
map['addressId'] = this.addressId; |
||||||
|
map['remark'] = this.remark; |
||||||
|
map['phone'] = this.phone; |
||||||
|
map['createTime'] = this.createTime; |
||||||
|
map['birth'] = this.birth; |
||||||
|
map['balance'] = this.balance; |
||||||
|
map['money'] = this.money; |
||||||
|
map['points'] = this.points; |
||||||
|
map['isBind'] = this.isBind; |
||||||
|
if (this.memberRankVo != null) { |
||||||
|
map['memberRankVo'] = this.memberRankVo.toJson(); |
||||||
|
} |
||||||
|
map['age'] = this.age; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// id : "1402947503522840576" |
||||||
|
/// rankName : "黄金会员" |
||||||
|
/// rankOrigin : 8888 |
||||||
|
/// rankContent : "" |
||||||
|
/// rankImg : "" |
||||||
|
/// status : true |
||||||
|
/// nextId : "1402947503522840577" |
||||||
|
/// nextName : "钻石会员" |
||||||
|
/// nextOrigin : null |
||||||
|
|
||||||
|
class MemberRankVo { |
||||||
|
MemberRankVo({ |
||||||
|
String id, |
||||||
|
String rankName, |
||||||
|
int rankOrigin, |
||||||
|
String rankContent, |
||||||
|
String rankImg, |
||||||
|
bool status, |
||||||
|
String nextId, |
||||||
|
String nextName, |
||||||
|
dynamic nextOrigin,}){ |
||||||
|
this.id = id; |
||||||
|
this.rankName = rankName; |
||||||
|
this.rankOrigin = rankOrigin; |
||||||
|
this.rankContent = rankContent; |
||||||
|
this.rankImg = rankImg; |
||||||
|
this.status = status; |
||||||
|
this.nextId = nextId; |
||||||
|
this.nextName = nextName; |
||||||
|
this.nextOrigin = nextOrigin; |
||||||
|
} |
||||||
|
|
||||||
|
MemberRankVo.fromJson(dynamic json) { |
||||||
|
this.id = json['id']; |
||||||
|
this.rankName = json['rankName']; |
||||||
|
this.rankOrigin = json['rankOrigin']; |
||||||
|
this.rankContent = json['rankContent']; |
||||||
|
this.rankImg = json['rankImg']; |
||||||
|
this.status = json['status']; |
||||||
|
this.nextId = json['nextId']; |
||||||
|
this.nextName = json['nextName']; |
||||||
|
this.nextOrigin = json['nextOrigin']; |
||||||
|
} |
||||||
|
String id; |
||||||
|
String rankName; |
||||||
|
int rankOrigin; |
||||||
|
String rankContent; |
||||||
|
String rankImg; |
||||||
|
bool status; |
||||||
|
String nextId; |
||||||
|
String nextName; |
||||||
|
dynamic nextOrigin; |
||||||
|
|
||||||
|
Map<String, dynamic> toJson() { |
||||||
|
final map = <String, dynamic>{}; |
||||||
|
map['id'] = this.id; |
||||||
|
map['rankName'] = this.rankName; |
||||||
|
map['rankOrigin'] = this.rankOrigin; |
||||||
|
map['rankContent'] = this.rankContent; |
||||||
|
map['rankImg'] = this.rankImg; |
||||||
|
map['status'] = this.status; |
||||||
|
map['nextId'] = this.nextId; |
||||||
|
map['nextName'] = this.nextName; |
||||||
|
map['nextOrigin'] = this.nextOrigin; |
||||||
|
return map; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -1,41 +0,0 @@ |
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
||||||
|
|
||||||
part of 'page.dart'; |
|
||||||
|
|
||||||
// ************************************************************************** |
|
||||||
// JsonSerializableGenerator |
|
||||||
// ************************************************************************** |
|
||||||
|
|
||||||
PageInfo<D> _$PageInfoFromJson<D>( |
|
||||||
Map<String, dynamic> json, |
|
||||||
D Function(Object json) fromJsonD, |
|
||||||
) { |
|
||||||
return PageInfo<D>() |
|
||||||
..pageNum = json['pageNum'] as int |
|
||||||
..current = json['current'] |
|
||||||
..pageSize = json['pageSize'] as int |
|
||||||
..size = json['size'] |
|
||||||
..pages = json['pages'] |
|
||||||
..hasPreviousPage = json['hasPreviousPage'] as bool |
|
||||||
..hasNextPage = json['hasNextPage'] as bool |
|
||||||
..total = json['total'] as String |
|
||||||
..list = (json['list'] as List)?.map(fromJsonD)?.toList() |
|
||||||
..records = (json['records'] as List)?.map(fromJsonD)?.toList(); |
|
||||||
} |
|
||||||
|
|
||||||
Map<String, dynamic> _$PageInfoToJson<D>( |
|
||||||
PageInfo<D> instance, |
|
||||||
Object Function(D value) toJsonD, |
|
||||||
) => |
|
||||||
<String, dynamic>{ |
|
||||||
'pageNum': instance.pageNum, |
|
||||||
'current': instance.current, |
|
||||||
'pageSize': instance.pageSize, |
|
||||||
'size': instance.size, |
|
||||||
'pages': instance.pages, |
|
||||||
'hasPreviousPage': instance.hasPreviousPage, |
|
||||||
'hasNextPage': instance.hasNextPage, |
|
||||||
'total': instance.total, |
|
||||||
'list': instance.list?.map(toJsonD)?.toList(), |
|
||||||
'records': instance.records?.map(toJsonD)?.toList(), |
|
||||||
}; |
|
@ -1,338 +0,0 @@ |
|||||||
// 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 ??= 'http://192.168.10.236:8765/app/'; |
|
||||||
} |
|
||||||
|
|
||||||
final Dio _dio; |
|
||||||
|
|
||||||
String baseUrl; |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<FindMiNiGroupList>>> findMiNiGroupList(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>>( |
|
||||||
'product/findMiNiGroupList', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<List<FindMiNiGroupList>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<FindMiNiGroupList>( |
|
||||||
(i) => FindMiNiGroupList.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<MiNiDetail>> miNiDetail(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>>( |
|
||||||
'/product/queryMiNiProductDetail?id=$id', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'GET', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<MiNiDetail>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => MiNiDetail.fromJson(json), |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<ShoppingCart>>> addShoppingCart(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>>('shoppingcart', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<List<ShoppingCart>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<ShoppingCart>( |
|
||||||
(i) => ShoppingCart.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<ShoppingCart>>> getShoppingCart(tableId) async { |
|
||||||
ArgumentError.checkNotNull(tableId, 'tableId'); |
|
||||||
const _extra = <String, dynamic>{}; |
|
||||||
final queryParameters = <String, dynamic>{r'tableId': tableId}; |
|
||||||
final _data = <String, dynamic>{}; |
|
||||||
final _result = await _dio.request<Map<String, dynamic>>('shoppingcart', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'GET', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<List<ShoppingCart>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<ShoppingCart>( |
|
||||||
(i) => ShoppingCart.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<bool>> clearShoppingCart() async { |
|
||||||
const _extra = <String, dynamic>{}; |
|
||||||
final queryParameters = <String, dynamic>{}; |
|
||||||
final _data = <String, dynamic>{}; |
|
||||||
final _result = await _dio.request<Map<String, dynamic>>( |
|
||||||
'shoppingcart/delCart', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'GET', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<bool>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => json as bool, |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<ShoppingCart>>> shoppingCart1(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>>('shoppingcart', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'PUT', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<List<ShoppingCart>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<ShoppingCart>( |
|
||||||
(i) => ShoppingCart.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<ShoppingCart>>> shoppingCartSingle(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>>( |
|
||||||
'shoppingcart/single', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'PUT', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<List<ShoppingCart>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<ShoppingCart>( |
|
||||||
(i) => ShoppingCart.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<SettleOrderInfo>> getOrderInfo(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>>( |
|
||||||
'order/getOrderInfo', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<SettleOrderInfo>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => SettleOrderInfo.fromJson(json), |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<List<Address>>> queryAddress() 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<List<Address>>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => (json as List<dynamic>) |
|
||||||
.map<Address>((i) => Address.fromJson(i as Map<String, dynamic>)) |
|
||||||
.toList()); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<DownOrder>> placeOrderFirst(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>>( |
|
||||||
'order/placeOrderFirst', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<DownOrder>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => DownOrder.fromJson(json), |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<WxPay>> settlementWx(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>>('order/settlement', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<WxPay>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => WxPay.fromJson(json), |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<dynamic>> settlementApi(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>>('order/settlement', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<dynamic>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => json as dynamic, |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<dynamic>> queryStoreInfo1(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/getStore', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'POST', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<dynamic>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => json as dynamic, |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
|
|
||||||
@override |
|
||||||
Future<BaseData<dynamic>> getParentInfo(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>>( |
|
||||||
'/order/getParentInfo/$id', |
|
||||||
queryParameters: queryParameters, |
|
||||||
options: RequestOptions( |
|
||||||
method: 'GET', |
|
||||||
headers: <String, dynamic>{}, |
|
||||||
extra: _extra, |
|
||||||
baseUrl: baseUrl), |
|
||||||
data: _data); |
|
||||||
final value = BaseData<dynamic>.fromJson( |
|
||||||
_result.data, |
|
||||||
(json) => json as dynamic, |
|
||||||
); |
|
||||||
return value; |
|
||||||
} |
|
||||||
} |
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue