feat:挂单
This commit is contained in:
1 parent
988247f3cd
commit
2b956342f4
12 files changed
+545
-36
No files matched your search
@@ -16,22 +16,31 @@ class OrderHoldBillEntity {
|
||||
SysType sysType;
|
||||
|
||||
/// 订单列表json
|
||||
String? orderListJson;
|
||||
String? carListJson;
|
||||
|
||||
/// 支付订单json
|
||||
String? userJson;
|
||||
|
||||
String? orderJson;
|
||||
/// 购物车的总金额
|
||||
int price;
|
||||
|
||||
/// 购物车额外金额
|
||||
int extraPrice;
|
||||
|
||||
/// 结算总金额
|
||||
int payPrice;
|
||||
|
||||
/// 创建时间
|
||||
DateTime createTime;
|
||||
|
||||
OrderHoldBillEntity({
|
||||
this.id,
|
||||
this.orderListJson,
|
||||
this.userJson,
|
||||
this.orderJson,
|
||||
required this.sysType,
|
||||
this.carListJson,
|
||||
this.userJson,
|
||||
required this.price,
|
||||
required this.extraPrice,
|
||||
required this.payPrice,
|
||||
required this.createTime,
|
||||
});
|
||||
|
||||
|
||||
@@ -9,10 +9,12 @@ part of 'order_hold_bill_entity.dart';
|
||||
OrderHoldBillEntity _$OrderHoldBillEntityFromJson(Map<String, dynamic> json) =>
|
||||
OrderHoldBillEntity(
|
||||
id: (json['id'] as num?)?.toInt(),
|
||||
orderListJson: json['orderListJson'] as String?,
|
||||
userJson: json['userJson'] as String?,
|
||||
orderJson: json['orderJson'] as String?,
|
||||
sysType: $enumDecode(_$SysTypeEnumMap, json['sysType']),
|
||||
carListJson: json['carListJson'] as String?,
|
||||
userJson: json['userJson'] as String?,
|
||||
price: (json['price'] as num).toInt(),
|
||||
extraPrice: (json['extraPrice'] as num).toInt(),
|
||||
payPrice: (json['payPrice'] as num).toInt(),
|
||||
createTime: DateTime.parse(json['createTime'] as String),
|
||||
);
|
||||
|
||||
@@ -21,9 +23,11 @@ Map<String, dynamic> _$OrderHoldBillEntityToJson(
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'sysType': _$SysTypeEnumMap[instance.sysType]!,
|
||||
'orderListJson': instance.orderListJson,
|
||||
'carListJson': instance.carListJson,
|
||||
'userJson': instance.userJson,
|
||||
'orderJson': instance.orderJson,
|
||||
'price': instance.price,
|
||||
'extraPrice': instance.extraPrice,
|
||||
'payPrice': instance.payPrice,
|
||||
'createTime': instance.createTime.toIso8601String(),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user