w-R
3 years ago
19 changed files with 1175 additions and 253 deletions
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 521 B |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,315 @@
|
||||
/// actRecord : {"id":"1480458252863930368","createTime":"2022-01-10 16:35:28","createUser":"1478548720785031168","updateTime":"2022-01-10 16:35:28","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actProductId":"1479377402160218112","mid":"1478548720785031168","joinNum":1,"startTime":"2022-01-10 16:35:28","endTime":"2022-01-11 14:35:28","state":1,"isDelete":0} |
||||
/// actRecordJoinList : [{"id":"1480458253568573440","createTime":"2022-01-10 16:35:28","createUser":"1478548720785031168","updateTime":"2022-01-10 16:35:28","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1480458252863930368","mid":"1478548720785031168","orderId":"1480458254545846272","isLeader":true,"memberAvatar":"","memberNickname":"斯基","productId":"1479377402160218112","actPrice":"78.00","state":false,"isDelete":0},{"id":"1480465728682328064","createTime":"2022-01-10 17:05:10","createUser":"1478548720785031168","updateTime":"2022-01-10 17:05:10","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1480458252863930368","mid":"1478548720785031168","orderId":"1480465729634435072","isLeader":false,"memberAvatar":"","memberNickname":"斯基","productId":"1479377402160218112","actPrice":"78.00","state":true,"isDelete":0},{"id":"1480466261283438592","createTime":"2022-01-10 17:07:17","createUser":"1478548720785031168","updateTime":"2022-01-10 17:07:17","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1480458252863930368","mid":"1478548720785031168","orderId":"1480466261941944320","isLeader":false,"memberAvatar":"","memberNickname":"斯基","productId":"1479377402160218112","actPrice":"78.00","state":false,"isDelete":0}] |
||||
|
||||
class ActivityActRecordDetails { |
||||
ActivityActRecordDetails({ |
||||
ActRecord actRecord, |
||||
List<ActRecordJoinList> actRecordJoinList,}){ |
||||
_actRecord = actRecord; |
||||
_actRecordJoinList = actRecordJoinList; |
||||
} |
||||
|
||||
ActivityActRecordDetails.fromJson(dynamic json) { |
||||
_actRecord = json['actRecord'] != null ? ActRecord.fromJson(json['actRecord']) : null; |
||||
if (json['actRecordJoinList'] != null) { |
||||
_actRecordJoinList = []; |
||||
json['actRecordJoinList'].forEach((v) { |
||||
_actRecordJoinList.add(ActRecordJoinList.fromJson(v)); |
||||
}); |
||||
} |
||||
} |
||||
ActRecord _actRecord; |
||||
List<ActRecordJoinList> _actRecordJoinList; |
||||
|
||||
ActRecord get actRecord => _actRecord; |
||||
List<ActRecordJoinList> get actRecordJoinList => _actRecordJoinList; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
if (_actRecord != null) { |
||||
map['actRecord'] = _actRecord.toJson(); |
||||
} |
||||
if (_actRecordJoinList != null) { |
||||
map['actRecordJoinList'] = _actRecordJoinList.map((v) => v.toJson()).toList(); |
||||
} |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// id : "1480458253568573440" |
||||
/// createTime : "2022-01-10 16:35:28" |
||||
/// createUser : "1478548720785031168" |
||||
/// updateTime : "2022-01-10 16:35:28" |
||||
/// updateUser : "1478548720785031168" |
||||
/// storeId : "1460885296764682240" |
||||
/// type : 1 |
||||
/// actTemplateId : "1479377328797646848" |
||||
/// actTimeId : "1479377329099636736" |
||||
/// actRecordId : "1480458252863930368" |
||||
/// mid : "1478548720785031168" |
||||
/// orderId : "1480458254545846272" |
||||
/// isLeader : true |
||||
/// memberAvatar : "" |
||||
/// memberNickname : "斯基" |
||||
/// productId : "1479377402160218112" |
||||
/// actPrice : "78.00" |
||||
/// state : false |
||||
/// isDelete : 0 |
||||
|
||||
class ActRecordJoinList { |
||||
ActRecordJoinList({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String storeId, |
||||
int type, |
||||
String actTemplateId, |
||||
String actTimeId, |
||||
String actRecordId, |
||||
String mid, |
||||
String orderId, |
||||
bool isLeader, |
||||
String memberAvatar, |
||||
String memberNickname, |
||||
String productId, |
||||
String actPrice, |
||||
bool state, |
||||
int isDelete,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_storeId = storeId; |
||||
_type = type; |
||||
_actTemplateId = actTemplateId; |
||||
_actTimeId = actTimeId; |
||||
_actRecordId = actRecordId; |
||||
_mid = mid; |
||||
_orderId = orderId; |
||||
_isLeader = isLeader; |
||||
_memberAvatar = memberAvatar; |
||||
_memberNickname = memberNickname; |
||||
_productId = productId; |
||||
_actPrice = actPrice; |
||||
_state = state; |
||||
_isDelete = isDelete; |
||||
} |
||||
|
||||
ActRecordJoinList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_storeId = json['storeId']; |
||||
_type = json['type']; |
||||
_actTemplateId = json['actTemplateId']; |
||||
_actTimeId = json['actTimeId']; |
||||
_actRecordId = json['actRecordId']; |
||||
_mid = json['mid']; |
||||
_orderId = json['orderId']; |
||||
_isLeader = json['isLeader']; |
||||
_memberAvatar = json['memberAvatar']; |
||||
_memberNickname = json['memberNickname']; |
||||
_productId = json['productId']; |
||||
_actPrice = json['actPrice']; |
||||
_state = json['state']; |
||||
_isDelete = json['isDelete']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _storeId; |
||||
int _type; |
||||
String _actTemplateId; |
||||
String _actTimeId; |
||||
String _actRecordId; |
||||
String _mid; |
||||
String _orderId; |
||||
bool _isLeader; |
||||
String _memberAvatar; |
||||
String _memberNickname; |
||||
String _productId; |
||||
String _actPrice; |
||||
bool _state; |
||||
int _isDelete; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get storeId => _storeId; |
||||
int get type => _type; |
||||
String get actTemplateId => _actTemplateId; |
||||
String get actTimeId => _actTimeId; |
||||
String get actRecordId => _actRecordId; |
||||
String get mid => _mid; |
||||
String get orderId => _orderId; |
||||
bool get isLeader => _isLeader; |
||||
String get memberAvatar => _memberAvatar; |
||||
String get memberNickname => _memberNickname; |
||||
String get productId => _productId; |
||||
String get actPrice => _actPrice; |
||||
bool get state => _state; |
||||
int get isDelete => _isDelete; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['storeId'] = _storeId; |
||||
map['type'] = _type; |
||||
map['actTemplateId'] = _actTemplateId; |
||||
map['actTimeId'] = _actTimeId; |
||||
map['actRecordId'] = _actRecordId; |
||||
map['mid'] = _mid; |
||||
map['orderId'] = _orderId; |
||||
map['isLeader'] = _isLeader; |
||||
map['memberAvatar'] = _memberAvatar; |
||||
map['memberNickname'] = _memberNickname; |
||||
map['productId'] = _productId; |
||||
map['actPrice'] = _actPrice; |
||||
map['state'] = _state; |
||||
map['isDelete'] = _isDelete; |
||||
return map; |
||||
} |
||||
|
||||
} |
||||
|
||||
/// id : "1480458252863930368" |
||||
/// createTime : "2022-01-10 16:35:28" |
||||
/// createUser : "1478548720785031168" |
||||
/// updateTime : "2022-01-10 16:35:28" |
||||
/// updateUser : "1478548720785031168" |
||||
/// storeId : "1460885296764682240" |
||||
/// type : 1 |
||||
/// actTemplateId : "1479377328797646848" |
||||
/// actTimeId : "1479377329099636736" |
||||
/// actProductId : "1479377402160218112" |
||||
/// mid : "1478548720785031168" |
||||
/// joinNum : 1 |
||||
/// startTime : "2022-01-10 16:35:28" |
||||
/// endTime : "2022-01-11 14:35:28" |
||||
/// state : 1 |
||||
/// isDelete : 0 |
||||
|
||||
class ActRecord { |
||||
ActRecord({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String storeId, |
||||
int type, |
||||
String actTemplateId, |
||||
String actTimeId, |
||||
String actProductId, |
||||
String mid, |
||||
int joinNum, |
||||
String startTime, |
||||
String endTime, |
||||
int state, |
||||
int isDelete,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_storeId = storeId; |
||||
_type = type; |
||||
_actTemplateId = actTemplateId; |
||||
_actTimeId = actTimeId; |
||||
_actProductId = actProductId; |
||||
_mid = mid; |
||||
_joinNum = joinNum; |
||||
_startTime = startTime; |
||||
_endTime = endTime; |
||||
_state = state; |
||||
_isDelete = isDelete; |
||||
} |
||||
|
||||
ActRecord.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_storeId = json['storeId']; |
||||
_type = json['type']; |
||||
_actTemplateId = json['actTemplateId']; |
||||
_actTimeId = json['actTimeId']; |
||||
_actProductId = json['actProductId']; |
||||
_mid = json['mid']; |
||||
_joinNum = json['joinNum']; |
||||
_startTime = json['startTime']; |
||||
_endTime = json['endTime']; |
||||
_state = json['state']; |
||||
_isDelete = json['isDelete']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _storeId; |
||||
int _type; |
||||
String _actTemplateId; |
||||
String _actTimeId; |
||||
String _actProductId; |
||||
String _mid; |
||||
int _joinNum; |
||||
String _startTime; |
||||
String _endTime; |
||||
int _state; |
||||
int _isDelete; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get storeId => _storeId; |
||||
int get type => _type; |
||||
String get actTemplateId => _actTemplateId; |
||||
String get actTimeId => _actTimeId; |
||||
String get actProductId => _actProductId; |
||||
String get mid => _mid; |
||||
int get joinNum => _joinNum; |
||||
String get startTime => _startTime; |
||||
String get endTime => _endTime; |
||||
int get state => _state; |
||||
int get isDelete => _isDelete; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['storeId'] = _storeId; |
||||
map['type'] = _type; |
||||
map['actTemplateId'] = _actTemplateId; |
||||
map['actTimeId'] = _actTimeId; |
||||
map['actProductId'] = _actProductId; |
||||
map['mid'] = _mid; |
||||
map['joinNum'] = _joinNum; |
||||
map['startTime'] = _startTime; |
||||
map['endTime'] = _endTime; |
||||
map['state'] = _state; |
||||
map['isDelete'] = _isDelete; |
||||
return map; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,85 @@
|
||||
/// storeName : "一心回乡商城" |
||||
/// joinTime : "2022-01-07 18:28:25" |
||||
/// productImg : "https://pos.upload.gznl.top/1179/2021/11/e50b00a1-09a2-4bab-b71f-e26e80006459.png" |
||||
/// productName : "无花果礼盒" |
||||
/// productSkuName : "" |
||||
/// actRecordstate : 4 |
||||
/// actRecordJoinState : null |
||||
/// howManyMore : null |
||||
/// bargainMoney : null |
||||
/// howManyMoney : null |
||||
|
||||
class ActivityOrderList { |
||||
ActivityOrderList({ |
||||
String storeName, |
||||
String joinTime, |
||||
String productImg, |
||||
String productName, |
||||
String productSkuName, |
||||
int actRecordstate, |
||||
dynamic actRecordJoinState, |
||||
dynamic howManyMore, |
||||
dynamic bargainMoney, |
||||
dynamic howManyMoney,}){ |
||||
_storeName = storeName; |
||||
_joinTime = joinTime; |
||||
_productImg = productImg; |
||||
_productName = productName; |
||||
_productSkuName = productSkuName; |
||||
_actRecordstate = actRecordstate; |
||||
_actRecordJoinState = actRecordJoinState; |
||||
_howManyMore = howManyMore; |
||||
_bargainMoney = bargainMoney; |
||||
_howManyMoney = howManyMoney; |
||||
} |
||||
|
||||
ActivityOrderList.fromJson(dynamic json) { |
||||
_storeName = json['storeName']; |
||||
_joinTime = json['joinTime']; |
||||
_productImg = json['productImg']; |
||||
_productName = json['productName']; |
||||
_productSkuName = json['productSkuName']; |
||||
_actRecordstate = json['actRecordstate']; |
||||
_actRecordJoinState = json['actRecordJoinState']; |
||||
_howManyMore = json['howManyMore']; |
||||
_bargainMoney = json['bargainMoney']; |
||||
_howManyMoney = json['howManyMoney']; |
||||
} |
||||
String _storeName; |
||||
String _joinTime; |
||||
String _productImg; |
||||
String _productName; |
||||
String _productSkuName; |
||||
int _actRecordstate; |
||||
dynamic _actRecordJoinState; |
||||
dynamic _howManyMore; |
||||
dynamic _bargainMoney; |
||||
dynamic _howManyMoney; |
||||
|
||||
String get storeName => _storeName; |
||||
String get joinTime => _joinTime; |
||||
String get productImg => _productImg; |
||||
String get productName => _productName; |
||||
String get productSkuName => _productSkuName; |
||||
int get actRecordstate => _actRecordstate; |
||||
dynamic get actRecordJoinState => _actRecordJoinState; |
||||
dynamic get howManyMore => _howManyMore; |
||||
dynamic get bargainMoney => _bargainMoney; |
||||
dynamic get howManyMoney => _howManyMoney; |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['storeName'] = _storeName; |
||||
map['joinTime'] = _joinTime; |
||||
map['productImg'] = _productImg; |
||||
map['productName'] = _productName; |
||||
map['productSkuName'] = _productSkuName; |
||||
map['actRecordstate'] = _actRecordstate; |
||||
map['actRecordJoinState'] = _actRecordJoinState; |
||||
map['howManyMore'] = _howManyMore; |
||||
map['bargainMoney'] = _bargainMoney; |
||||
map['howManyMoney'] = _howManyMoney; |
||||
return map; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue