|
|
@ -1,18 +1,21 @@ |
|
|
|
/// actRecord : {"id":"1494198857058222080","createTime":"2022-02-17 14:35:43","createUser":"1478548720785031168","updateTime":"2022-02-17 14:35:43","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":3,"actTemplateId":"1490572026815971328","actTimeId":"1490572027034075136","actProductId":"1494198261018263552","mid":"1478548720785031168","joinNum":1,"startTime":"2022-02-17 14:35:43","endTime":"2022-02-17 16:35:43","state":2,"isDelete":0} |
|
|
|
/// actRecord : {"id":"1496692045555695616","createTime":"2022-02-24 11:42:46","createUser":"1496056013827080192","updateTime":"2022-02-24 11:42:46","updateUser":"1496056013827080192","storeId":"1460885296764682240","type":3,"actTemplateId":"1490572026815971328","actTimeId":"1490572027034075136","actProductId":"1494198261018263552","mid":"1496056013827080192","isDirectBuy":false,"joinNum":1,"startTime":"2022-02-24 11:42:46","endTime":"2022-02-24 13:42:46","state":4,"isDelete":0} |
|
|
|
/// actRecordJoinList : [{"id":"1494198857217605632","createTime":"2022-02-17 14:35:43","createUser":"1478548720785031168","updateTime":"2022-02-17 14:35:43","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":3,"actTemplateId":"1490572026815971328","actTimeId":"1490572027034075136","actRecordId":"1494198857058222080","mid":"1478548720785031168","orderId":null,"isLeader":true,"memberAvatar":"","memberNickname":"","productId":"1494198261018263552","actPrice":"57.81","state":true,"isDelete":0}] |
|
|
|
/// actRecordJoinList : [{"id":"1496692045677330432","createTime":"2022-02-24 11:42:46","createUser":"1496056013827080192","updateTime":"2022-02-24 11:42:46","updateUser":"1496056013827080192","storeId":"1460885296764682240","type":3,"actTemplateId":"1490572026815971328","actTimeId":"1490572027034075136","actRecordId":"1496692045555695616","mid":"1496056013827080192","orderId":null,"isLeader":true,"memberAvatar":"","memberNickname":"","productId":"1494198261018263552","actPrice":"54.45","state":true,"isDelete":0}] |
|
|
|
/// actProduct : {"id":"1494198261018263552","createTime":"2022-02-17 14:33:21","createUser":"1364043181062094848","updateTime":"2022-02-17 14:33:21","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1490572026815971328","timeId":"1490572027034075136","productId":"1461246266586431488","productName":"野生羊肚菌","productImg":"https://pos.upload.gznl.top/1179/2021/11/298d1e1c-2a5f-4b9d-95a7-87b3f88a9cd1.jpg","productPrice":"150.00","promotionPrice":"11.00","productStock":200,"sellCount":0,"skuJson":[{"skuId":"1461246266661928960","skuPrice":11,"skuStock":100},{"skuId":"1461246266687094784","skuPrice":100,"skuStock":100}],"isDelete":0} |
|
|
|
/// actProduct : {"id":"1494198261018263552","createTime":"2022-02-17 14:33:21","createUser":"1364043181062094848","updateTime":"2022-02-17 14:33:21","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1490572026815971328","timeId":"1490572027034075136","productId":"1461246266586431488","productName":"野生羊肚菌","productImg":"https://pos.upload.gznl.top/1179/2021/11/298d1e1c-2a5f-4b9d-95a7-87b3f88a9cd1.jpg","productPrice":"150.00","promotionPrice":"11.00","productStock":200,"sellCount":0,"skuJson":[{"skuId":"1461246266661928960","skuPrice":11,"skuStock":100},{"skuId":"1461246266687094784","skuPrice":100,"skuStock":100}],"isDelete":0} |
|
|
|
/// skuName : "50g/袋" |
|
|
|
/// skuName : null |
|
|
|
|
|
|
|
/// isBargain : true |
|
|
|
|
|
|
|
|
|
|
|
class ActivityActRecordDetails { |
|
|
|
class ActivityActRecordDetails { |
|
|
|
ActivityActRecordDetails({ |
|
|
|
ActivityActRecordDetails({ |
|
|
|
ActRecord actRecord, |
|
|
|
ActRecord actRecord, |
|
|
|
List<ActRecordJoinList> actRecordJoinList, |
|
|
|
List<ActRecordJoinList> actRecordJoinList, |
|
|
|
ActProduct actProduct, |
|
|
|
ActProduct actProduct, |
|
|
|
String skuName,}){ |
|
|
|
dynamic skuName, |
|
|
|
|
|
|
|
bool isBargain,}){ |
|
|
|
_actRecord = actRecord; |
|
|
|
_actRecord = actRecord; |
|
|
|
_actRecordJoinList = actRecordJoinList; |
|
|
|
_actRecordJoinList = actRecordJoinList; |
|
|
|
_actProduct = actProduct; |
|
|
|
_actProduct = actProduct; |
|
|
|
_skuName = skuName; |
|
|
|
_skuName = skuName; |
|
|
|
|
|
|
|
_isBargain = isBargain; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ActivityActRecordDetails.fromJson(dynamic json) { |
|
|
|
ActivityActRecordDetails.fromJson(dynamic json) { |
|
|
@ -25,16 +28,19 @@ class ActivityActRecordDetails { |
|
|
|
} |
|
|
|
} |
|
|
|
_actProduct = json['actProduct'] != null ? ActProduct.fromJson(json['actProduct']) : null; |
|
|
|
_actProduct = json['actProduct'] != null ? ActProduct.fromJson(json['actProduct']) : null; |
|
|
|
_skuName = json['skuName']; |
|
|
|
_skuName = json['skuName']; |
|
|
|
|
|
|
|
_isBargain = json['isBargain']; |
|
|
|
} |
|
|
|
} |
|
|
|
ActRecord _actRecord; |
|
|
|
ActRecord _actRecord; |
|
|
|
List<ActRecordJoinList> _actRecordJoinList; |
|
|
|
List<ActRecordJoinList> _actRecordJoinList; |
|
|
|
ActProduct _actProduct; |
|
|
|
ActProduct _actProduct; |
|
|
|
String _skuName; |
|
|
|
dynamic _skuName; |
|
|
|
|
|
|
|
bool _isBargain; |
|
|
|
|
|
|
|
|
|
|
|
ActRecord get actRecord => _actRecord; |
|
|
|
ActRecord get actRecord => _actRecord; |
|
|
|
List<ActRecordJoinList> get actRecordJoinList => _actRecordJoinList; |
|
|
|
List<ActRecordJoinList> get actRecordJoinList => _actRecordJoinList; |
|
|
|
ActProduct get actProduct => _actProduct; |
|
|
|
ActProduct get actProduct => _actProduct; |
|
|
|
String get skuName => _skuName; |
|
|
|
dynamic get skuName => _skuName; |
|
|
|
|
|
|
|
bool get isBargain => _isBargain; |
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
final map = <String, dynamic>{}; |
|
|
|
final map = <String, dynamic>{}; |
|
|
@ -48,6 +54,7 @@ class ActivityActRecordDetails { |
|
|
|
map['actProduct'] = _actProduct.toJson(); |
|
|
|
map['actProduct'] = _actProduct.toJson(); |
|
|
|
} |
|
|
|
} |
|
|
|
map['skuName'] = _skuName; |
|
|
|
map['skuName'] = _skuName; |
|
|
|
|
|
|
|
map['isBargain'] = _isBargain; |
|
|
|
return map; |
|
|
|
return map; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -232,23 +239,23 @@ class SkuJson { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// id : "1494198857217605632" |
|
|
|
/// id : "1496692045677330432" |
|
|
|
/// createTime : "2022-02-17 14:35:43" |
|
|
|
/// createTime : "2022-02-24 11:42:46" |
|
|
|
/// createUser : "1478548720785031168" |
|
|
|
/// createUser : "1496056013827080192" |
|
|
|
/// updateTime : "2022-02-17 14:35:43" |
|
|
|
/// updateTime : "2022-02-24 11:42:46" |
|
|
|
/// updateUser : "1478548720785031168" |
|
|
|
/// updateUser : "1496056013827080192" |
|
|
|
/// storeId : "1460885296764682240" |
|
|
|
/// storeId : "1460885296764682240" |
|
|
|
/// type : 3 |
|
|
|
/// type : 3 |
|
|
|
/// actTemplateId : "1490572026815971328" |
|
|
|
/// actTemplateId : "1490572026815971328" |
|
|
|
/// actTimeId : "1490572027034075136" |
|
|
|
/// actTimeId : "1490572027034075136" |
|
|
|
/// actRecordId : "1494198857058222080" |
|
|
|
/// actRecordId : "1496692045555695616" |
|
|
|
/// mid : "1478548720785031168" |
|
|
|
/// mid : "1496056013827080192" |
|
|
|
/// orderId : null |
|
|
|
/// orderId : null |
|
|
|
/// isLeader : true |
|
|
|
/// isLeader : true |
|
|
|
/// memberAvatar : "" |
|
|
|
/// memberAvatar : "" |
|
|
|
/// memberNickname : "" |
|
|
|
/// memberNickname : "" |
|
|
|
/// productId : "1494198261018263552" |
|
|
|
/// productId : "1494198261018263552" |
|
|
|
/// actPrice : "57.81" |
|
|
|
/// actPrice : "54.45" |
|
|
|
/// state : true |
|
|
|
/// state : true |
|
|
|
/// isDelete : 0 |
|
|
|
/// isDelete : 0 |
|
|
|
|
|
|
|
|
|
|
@ -381,21 +388,22 @@ class ActRecordJoinList { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// id : "1494198857058222080" |
|
|
|
/// id : "1496692045555695616" |
|
|
|
/// createTime : "2022-02-17 14:35:43" |
|
|
|
/// createTime : "2022-02-24 11:42:46" |
|
|
|
/// createUser : "1478548720785031168" |
|
|
|
/// createUser : "1496056013827080192" |
|
|
|
/// updateTime : "2022-02-17 14:35:43" |
|
|
|
/// updateTime : "2022-02-24 11:42:46" |
|
|
|
/// updateUser : "1478548720785031168" |
|
|
|
/// updateUser : "1496056013827080192" |
|
|
|
/// storeId : "1460885296764682240" |
|
|
|
/// storeId : "1460885296764682240" |
|
|
|
/// type : 3 |
|
|
|
/// type : 3 |
|
|
|
/// actTemplateId : "1490572026815971328" |
|
|
|
/// actTemplateId : "1490572026815971328" |
|
|
|
/// actTimeId : "1490572027034075136" |
|
|
|
/// actTimeId : "1490572027034075136" |
|
|
|
/// actProductId : "1494198261018263552" |
|
|
|
/// actProductId : "1494198261018263552" |
|
|
|
/// mid : "1478548720785031168" |
|
|
|
/// mid : "1496056013827080192" |
|
|
|
|
|
|
|
/// isDirectBuy : false |
|
|
|
/// joinNum : 1 |
|
|
|
/// joinNum : 1 |
|
|
|
/// startTime : "2022-02-17 14:35:43" |
|
|
|
/// startTime : "2022-02-24 11:42:46" |
|
|
|
/// endTime : "2022-02-17 16:35:43" |
|
|
|
/// endTime : "2022-02-24 13:42:46" |
|
|
|
/// state : 2 |
|
|
|
/// state : 4 |
|
|
|
/// isDelete : 0 |
|
|
|
/// isDelete : 0 |
|
|
|
|
|
|
|
|
|
|
|
class ActRecord { |
|
|
|
class ActRecord { |
|
|
@ -411,6 +419,7 @@ class ActRecord { |
|
|
|
String actTimeId, |
|
|
|
String actTimeId, |
|
|
|
String actProductId, |
|
|
|
String actProductId, |
|
|
|
String mid, |
|
|
|
String mid, |
|
|
|
|
|
|
|
bool isDirectBuy, |
|
|
|
int joinNum, |
|
|
|
int joinNum, |
|
|
|
String startTime, |
|
|
|
String startTime, |
|
|
|
String endTime, |
|
|
|
String endTime, |
|
|
@ -427,6 +436,7 @@ class ActRecord { |
|
|
|
_actTimeId = actTimeId; |
|
|
|
_actTimeId = actTimeId; |
|
|
|
_actProductId = actProductId; |
|
|
|
_actProductId = actProductId; |
|
|
|
_mid = mid; |
|
|
|
_mid = mid; |
|
|
|
|
|
|
|
_isDirectBuy = isDirectBuy; |
|
|
|
_joinNum = joinNum; |
|
|
|
_joinNum = joinNum; |
|
|
|
_startTime = startTime; |
|
|
|
_startTime = startTime; |
|
|
|
_endTime = endTime; |
|
|
|
_endTime = endTime; |
|
|
@ -446,6 +456,7 @@ class ActRecord { |
|
|
|
_actTimeId = json['actTimeId']; |
|
|
|
_actTimeId = json['actTimeId']; |
|
|
|
_actProductId = json['actProductId']; |
|
|
|
_actProductId = json['actProductId']; |
|
|
|
_mid = json['mid']; |
|
|
|
_mid = json['mid']; |
|
|
|
|
|
|
|
_isDirectBuy = json['isDirectBuy']; |
|
|
|
_joinNum = json['joinNum']; |
|
|
|
_joinNum = json['joinNum']; |
|
|
|
_startTime = json['startTime']; |
|
|
|
_startTime = json['startTime']; |
|
|
|
_endTime = json['endTime']; |
|
|
|
_endTime = json['endTime']; |
|
|
@ -463,6 +474,7 @@ class ActRecord { |
|
|
|
String _actTimeId; |
|
|
|
String _actTimeId; |
|
|
|
String _actProductId; |
|
|
|
String _actProductId; |
|
|
|
String _mid; |
|
|
|
String _mid; |
|
|
|
|
|
|
|
bool _isDirectBuy; |
|
|
|
int _joinNum; |
|
|
|
int _joinNum; |
|
|
|
String _startTime; |
|
|
|
String _startTime; |
|
|
|
String _endTime; |
|
|
|
String _endTime; |
|
|
@ -480,6 +492,7 @@ class ActRecord { |
|
|
|
String get actTimeId => _actTimeId; |
|
|
|
String get actTimeId => _actTimeId; |
|
|
|
String get actProductId => _actProductId; |
|
|
|
String get actProductId => _actProductId; |
|
|
|
String get mid => _mid; |
|
|
|
String get mid => _mid; |
|
|
|
|
|
|
|
bool get isDirectBuy => _isDirectBuy; |
|
|
|
int get joinNum => _joinNum; |
|
|
|
int get joinNum => _joinNum; |
|
|
|
String get startTime => _startTime; |
|
|
|
String get startTime => _startTime; |
|
|
|
String get endTime => _endTime; |
|
|
|
String get endTime => _endTime; |
|
|
@ -499,6 +512,7 @@ class ActRecord { |
|
|
|
map['actTimeId'] = _actTimeId; |
|
|
|
map['actTimeId'] = _actTimeId; |
|
|
|
map['actProductId'] = _actProductId; |
|
|
|
map['actProductId'] = _actProductId; |
|
|
|
map['mid'] = _mid; |
|
|
|
map['mid'] = _mid; |
|
|
|
|
|
|
|
map['isDirectBuy'] = _isDirectBuy; |
|
|
|
map['joinNum'] = _joinNum; |
|
|
|
map['joinNum'] = _joinNum; |
|
|
|
map['startTime'] = _startTime; |
|
|
|
map['startTime'] = _startTime; |
|
|
|
map['endTime'] = _endTime; |
|
|
|
map['endTime'] = _endTime; |
|
|
|