feat:预定广播
This commit is contained in:
1 parent
fa90df8d9d
commit
691fb68d53
13 files changed
+341
-1
No files matched your search
@@ -28,6 +28,27 @@ class BroadcastEntity {
|
||||
/// 完成时间
|
||||
DateTime? isDoneTime;
|
||||
|
||||
/// 服务单号
|
||||
String serviceCode;
|
||||
|
||||
/// 用户id
|
||||
String userId;
|
||||
|
||||
/// 用户姓名
|
||||
String username;
|
||||
|
||||
/// 用户手机号
|
||||
String userMobile;
|
||||
|
||||
/// 商品介绍
|
||||
String productDesc;
|
||||
|
||||
/// 支付价格
|
||||
int payPrice;
|
||||
|
||||
/// 手动开关
|
||||
bool enable = true;
|
||||
|
||||
/// 创建时间
|
||||
DateTime createTime;
|
||||
|
||||
@@ -37,6 +58,12 @@ class BroadcastEntity {
|
||||
required this.broadcastMaxCount,
|
||||
required this.isBroadcast,
|
||||
required this.createTime,
|
||||
required this.serviceCode,
|
||||
required this.userId,
|
||||
required this.username,
|
||||
required this.userMobile,
|
||||
required this.productDesc,
|
||||
required this.payPrice,
|
||||
});
|
||||
|
||||
factory BroadcastEntity.fromJson(Map<String, dynamic> json) =>
|
||||
|
||||
@@ -13,12 +13,19 @@ BroadcastEntity _$BroadcastEntityFromJson(Map<String, dynamic> json) =>
|
||||
broadcastMaxCount: (json['broadcastMaxCount'] as num).toInt(),
|
||||
isBroadcast: json['isBroadcast'] as bool,
|
||||
createTime: DateTime.parse(json['createTime'] as String),
|
||||
serviceCode: json['serviceCode'] as String,
|
||||
userId: json['userId'] as String,
|
||||
username: json['username'] as String,
|
||||
userMobile: json['userMobile'] as String,
|
||||
productDesc: json['productDesc'] as String,
|
||||
payPrice: (json['payPrice'] as num).toInt(),
|
||||
)
|
||||
..broadcastCount = (json['broadcastCount'] as num).toInt()
|
||||
..isDone = json['isDone'] as bool
|
||||
..isDoneTime = json['isDoneTime'] == null
|
||||
? null
|
||||
: DateTime.parse(json['isDoneTime'] as String);
|
||||
: DateTime.parse(json['isDoneTime'] as String)
|
||||
..enable = json['enable'] as bool;
|
||||
|
||||
Map<String, dynamic> _$BroadcastEntityToJson(BroadcastEntity instance) =>
|
||||
<String, dynamic>{
|
||||
@@ -29,5 +36,12 @@ Map<String, dynamic> _$BroadcastEntityToJson(BroadcastEntity instance) =>
|
||||
'isBroadcast': instance.isBroadcast,
|
||||
'isDone': instance.isDone,
|
||||
'isDoneTime': instance.isDoneTime?.toIso8601String(),
|
||||
'serviceCode': instance.serviceCode,
|
||||
'userId': instance.userId,
|
||||
'username': instance.username,
|
||||
'userMobile': instance.userMobile,
|
||||
'productDesc': instance.productDesc,
|
||||
'payPrice': instance.payPrice,
|
||||
'enable': instance.enable,
|
||||
'createTime': instance.createTime.toIso8601String(),
|
||||
};
|
||||
Reference in new issue
Block a user