You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

665 lines
19 KiB

3 years ago
/// actProduct : {"id":"1479377402042777600","createTime":"2022-01-07 17:00:33","createUser":"1364043181062094848","updateTime":"2022-01-07 17:00:33","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1479377328797646848","timeId":"1479377329099636736","productId":"1460886580993458176","productName":"无花果礼盒","productImg":"https://pos.upload.gznl.top/1179/2021/11/e50b00a1-09a2-4bab-b71f-e26e80006459.png","productPrice":"88.00","promotionPrice":"88.00","productStock":0,"sellCount":0,"skuJson":[{"skuId":"1460886581089927168","skuPrice":88,"skuStock":0}],"isDelete":0}
/// actRecordAndJoinlDTOList : [{"actRecord":{"id":"1479399513473941504","createTime":"2022-01-07 18:28:25","createUser":"1478548720785031168","updateTime":"2022-01-07 18:28:25","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actProductId":"1479377402042777600","mid":"1478548720785031168","joinNum":0,"startTime":"2022-01-07 18:28:25","endTime":"2022-01-08 16:28:25","state":2,"isDelete":0},"actRecordJoinList":[{"id":"1479399514073726976","createTime":"2022-01-07 18:28:25","createUser":"1478548720785031168","updateTime":"2022-01-07 18:28:25","updateUser":"1478548720785031168","storeId":"1460885296764682240","actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1479399513473941504","mid":"1478548720785031168","orderId":"1479399514677706752","isLeader":true,"memberAvatar":"","memberNickname":"斯基","productId":"1479377402042777600","actPrice":"88.00","state":false,"isDelete":0}]},{"actRecord":{"id":"1479401111025614848","createTime":"2022-01-07 18:34:45","createUser":"1468903135782109184","updateTime":"2022-01-07 18:34:45","updateUser":"1468903135782109184","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actProductId":"1479377402042777600","mid":"1468903135782109184","joinNum":0,"startTime":"2022-01-07 18:34:45","endTime":"2022-01-08 16:34:45","state":2,"isDelete":0},"actRecordJoinList":[{"id":"1479401111688314880","createTime":"2022-01-07 18:34:46","createUser":"1468903135782109184","updateTime":"2022-01-07 18:34:46","updateUser":"1468903135782109184","storeId":"1460885296764682240","actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1479401111025614848","mid":"1468903135782109184","orderId":"1479401112292294656","isLeader":true,"memberAvatar":"https://pos.upload.gznl.top/admin/2021/08/1f8d55ed-85d2-42a2-b155-6737a66226e8.jpg","memberNickname":"哈哈哈","productId":"1479377402042777600","actPrice":"88.00","state":false,"isDelete":0}]}]
class ActivityDetails {
ActivityDetails({
String endTime,
ActProduct actProduct,
List<ActRecordAndJoinlDTOList> actRecordAndJoinlDTOList,
}) {
_endTime = endTime;
3 years ago
_actProduct = actProduct;
_actRecordAndJoinlDTOList = actRecordAndJoinlDTOList;
}
3 years ago
ActivityDetails.fromJson(dynamic json) {
_endTime = json['endTime'];
_actProduct = json['actProduct'] != null
? ActProduct.fromJson(json['actProduct'])
: null;
3 years ago
if (json['actRecordAndJoinlDTOList'] != null) {
_actRecordAndJoinlDTOList = [];
json['actRecordAndJoinlDTOList'].forEach((v) {
_actRecordAndJoinlDTOList.add(ActRecordAndJoinlDTOList.fromJson(v));
});
}
}
String _endTime;
3 years ago
ActProduct _actProduct;
List<ActRecordAndJoinlDTOList> _actRecordAndJoinlDTOList;
String get endTime => _endTime;
3 years ago
ActProduct get actProduct => _actProduct;
List<ActRecordAndJoinlDTOList> get actRecordAndJoinlDTOList =>
_actRecordAndJoinlDTOList;
3 years ago
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['endTime'] = _endTime;
3 years ago
if (_actProduct != null) {
map['actProduct'] = _actProduct.toJson();
}
if (_actRecordAndJoinlDTOList != null) {
map['actRecordAndJoinlDTOList'] =
_actRecordAndJoinlDTOList.map((v) => v.toJson()).toList();
3 years ago
}
return map;
}
}
/// actRecord : {"id":"1479399513473941504","createTime":"2022-01-07 18:28:25","createUser":"1478548720785031168","updateTime":"2022-01-07 18:28:25","updateUser":"1478548720785031168","storeId":"1460885296764682240","type":1,"actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actProductId":"1479377402042777600","mid":"1478548720785031168","joinNum":0,"startTime":"2022-01-07 18:28:25","endTime":"2022-01-08 16:28:25","state":2,"isDelete":0}
/// actRecordJoinList : [{"id":"1479399514073726976","createTime":"2022-01-07 18:28:25","createUser":"1478548720785031168","updateTime":"2022-01-07 18:28:25","updateUser":"1478548720785031168","storeId":"1460885296764682240","actTemplateId":"1479377328797646848","actTimeId":"1479377329099636736","actRecordId":"1479399513473941504","mid":"1478548720785031168","orderId":"1479399514677706752","isLeader":true,"memberAvatar":"","memberNickname":"斯基","productId":"1479377402042777600","actPrice":"88.00","state":false,"isDelete":0}]
class ActRecordAndJoinlDTOList {
ActRecordAndJoinlDTOList({
ActRecord actRecord,
List<ActRecordJoinList> actRecordJoinList,
}) {
3 years ago
_actRecord = actRecord;
_actRecordJoinList = actRecordJoinList;
}
3 years ago
ActRecordAndJoinlDTOList.fromJson(dynamic json) {
_actRecord = json['actRecord'] != null
? ActRecord.fromJson(json['actRecord'])
: null;
3 years ago
if (json['actRecordJoinList'] != null) {
_actRecordJoinList = [];
json['actRecordJoinList'].forEach((v) {
_actRecordJoinList.add(ActRecordJoinList.fromJson(v));
});
}
}
3 years ago
ActRecord _actRecord;
List<ActRecordJoinList> _actRecordJoinList;
ActRecord get actRecord => _actRecord;
3 years ago
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();
3 years ago
}
return map;
}
}
/// id : "1479399514073726976"
/// createTime : "2022-01-07 18:28:25"
/// createUser : "1478548720785031168"
/// updateTime : "2022-01-07 18:28:25"
/// updateUser : "1478548720785031168"
/// storeId : "1460885296764682240"
/// actTemplateId : "1479377328797646848"
/// actTimeId : "1479377329099636736"
/// actRecordId : "1479399513473941504"
/// mid : "1478548720785031168"
/// orderId : "1479399514677706752"
/// isLeader : true
/// memberAvatar : ""
/// memberNickname : "斯基"
/// productId : "1479377402042777600"
/// actPrice : "88.00"
/// state : false
/// isDelete : 0
class ActRecordJoinList {
ActRecordJoinList({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String storeId,
String actTemplateId,
String actTimeId,
String actRecordId,
String mid,
String orderId,
bool isLeader,
String memberAvatar,
String memberNickname,
String productId,
String actPrice,
bool state,
int isDelete,
}) {
3 years ago
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_storeId = storeId;
_actTemplateId = actTemplateId;
_actTimeId = actTimeId;
_actRecordId = actRecordId;
_mid = mid;
_orderId = orderId;
_isLeader = isLeader;
_memberAvatar = memberAvatar;
_memberNickname = memberNickname;
_productId = productId;
_actPrice = actPrice;
_state = state;
_isDelete = isDelete;
}
3 years ago
ActRecordJoinList.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_storeId = json['storeId'];
_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'];
}
3 years ago
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _storeId;
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;
3 years ago
String get createTime => _createTime;
3 years ago
String get createUser => _createUser;
3 years ago
String get updateTime => _updateTime;
3 years ago
String get updateUser => _updateUser;
3 years ago
String get storeId => _storeId;
3 years ago
String get actTemplateId => _actTemplateId;
3 years ago
String get actTimeId => _actTimeId;
3 years ago
String get actRecordId => _actRecordId;
3 years ago
String get mid => _mid;
3 years ago
String get orderId => _orderId;
3 years ago
bool get isLeader => _isLeader;
3 years ago
String get memberAvatar => _memberAvatar;
3 years ago
String get memberNickname => _memberNickname;
3 years ago
String get productId => _productId;
3 years ago
String get actPrice => _actPrice;
3 years ago
bool get state => _state;
3 years ago
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['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 : "1479399513473941504"
/// createTime : "2022-01-07 18:28:25"
/// createUser : "1478548720785031168"
/// updateTime : "2022-01-07 18:28:25"
/// updateUser : "1478548720785031168"
/// storeId : "1460885296764682240"
/// type : 1
/// actTemplateId : "1479377328797646848"
/// actTimeId : "1479377329099636736"
/// actProductId : "1479377402042777600"
/// mid : "1478548720785031168"
/// joinNum : 0
/// startTime : "2022-01-07 18:28:25"
/// endTime : "2022-01-08 16:28:25"
/// state : 2
/// 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,
}) {
3 years ago
_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;
}
3 years ago
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'];
}
3 years ago
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;
int _tempDay;
int _tempHour;
int _tempM;
int _tempS;
int get tempDay => _tempDay;
set tempDay(int value) {
_tempDay = value;
}
3 years ago
String get id => _id;
3 years ago
String get createTime => _createTime;
3 years ago
String get createUser => _createUser;
3 years ago
String get updateTime => _updateTime;
3 years ago
String get updateUser => _updateUser;
3 years ago
String get storeId => _storeId;
3 years ago
int get type => _type;
3 years ago
String get actTemplateId => _actTemplateId;
3 years ago
String get actTimeId => _actTimeId;
3 years ago
String get actProductId => _actProductId;
3 years ago
String get mid => _mid;
3 years ago
int get joinNum => _joinNum;
3 years ago
String get startTime => _startTime;
3 years ago
String get endTime => _endTime;
3 years ago
int get state => _state;
3 years ago
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;
}
int get tempHour => _tempHour;
set tempHour(int value) {
_tempHour = value;
}
int get tempM => _tempM;
set tempM(int value) {
_tempM = value;
}
int get tempS => _tempS;
set tempS(int value) {
_tempS = value;
}
3 years ago
}
/// id : "1479377402042777600"
/// createTime : "2022-01-07 17:00:33"
/// createUser : "1364043181062094848"
/// updateTime : "2022-01-07 17:00:33"
/// updateUser : "1364043181062094848"
/// storeId : "1460885296764682240"
/// templateId : "1479377328797646848"
/// timeId : "1479377329099636736"
/// productId : "1460886580993458176"
/// productName : "无花果礼盒"
/// productImg : "https://pos.upload.gznl.top/1179/2021/11/e50b00a1-09a2-4bab-b71f-e26e80006459.png"
/// productPrice : "88.00"
/// promotionPrice : "88.00"
/// productStock : 0
/// sellCount : 0
/// skuJson : [{"skuId":"1460886581089927168","skuPrice":88,"skuStock":0}]
/// isDelete : 0
class ActProduct {
ActProduct({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String storeId,
String templateId,
String timeId,
String productId,
String productName,
String productImg,
String productPrice,
String promotionPrice,
int productStock,
int sellCount,
List<SkuJson> skuJson,
int isDelete,
3 years ago
String shortName,
String supplierName,
String detail,
String details,
String rightImg,
}) {
3 years ago
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_storeId = storeId;
_templateId = templateId;
_timeId = timeId;
_productId = productId;
_productName = productName;
_productImg = productImg;
_productPrice = productPrice;
_promotionPrice = promotionPrice;
_productStock = productStock;
_sellCount = sellCount;
_skuJson = skuJson;
_isDelete = isDelete;
3 years ago
_shortName = shortName;
_supplierName =supplierName;
_detail = detail;
_details = details;
_rightImg = rightImg;
}
3 years ago
ActProduct.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_storeId = json['storeId'];
_templateId = json['templateId'];
_timeId = json['timeId'];
_productId = json['productId'];
_productName = json['productName'];
_productImg = json['productImg'];
_productPrice = json['productPrice'];
_promotionPrice = json['promotionPrice'];
_productStock = json['productStock'];
_sellCount = json['sellCount'];
if (json['skuJson'] != null) {
_skuJson = [];
json['skuJson'].forEach((v) {
_skuJson.add(SkuJson.fromJson(v));
});
}
_isDelete = json['isDelete'];
3 years ago
_shortName = json['shortName'];
_supplierName = json['supplierName'];
_detail = json['detail'];
_details = json['details'];
_rightImg = json['rightImg'];
3 years ago
}
3 years ago
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _storeId;
String _templateId;
String _timeId;
String _productId;
String _productName;
String _productImg;
String _productPrice;
String _promotionPrice;
int _productStock;
int _sellCount;
List<SkuJson> _skuJson;
int _isDelete;
3 years ago
String _shortName;
String _supplierName;
String _detail;
String _details;
String _rightImg;
3 years ago
String get id => _id;
3 years ago
String get createTime => _createTime;
3 years ago
String get createUser => _createUser;
3 years ago
String get updateTime => _updateTime;
3 years ago
String get updateUser => _updateUser;
3 years ago
String get storeId => _storeId;
3 years ago
String get templateId => _templateId;
3 years ago
String get timeId => _timeId;
3 years ago
String get productId => _productId;
3 years ago
String get productName => _productName;
3 years ago
String get productImg => _productImg;
3 years ago
String get productPrice => _productPrice;
3 years ago
String get promotionPrice => _promotionPrice;
3 years ago
int get productStock => _productStock;
3 years ago
int get sellCount => _sellCount;
3 years ago
List<SkuJson> get skuJson => _skuJson;
3 years ago
int get isDelete => _isDelete;
3 years ago
String get shortName => _shortName;
String get supplierName => _supplierName;
String get detail => _detail;
String get details => _details;
String get rightImg => _rightImg;
3 years ago
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['templateId'] = _templateId;
map['timeId'] = _timeId;
map['productId'] = _productId;
map['productName'] = _productName;
map['productImg'] = _productImg;
map['productPrice'] = _productPrice;
map['promotionPrice'] = _promotionPrice;
map['productStock'] = _productStock;
map['sellCount'] = _sellCount;
if (_skuJson != null) {
map['skuJson'] = _skuJson.map((v) => v.toJson()).toList();
}
map['isDelete'] = _isDelete;
3 years ago
map['shortName'] = _shortName;
map['supplierName'] = _supplierName;
map['detail'] = _detail;
map['details'] = _details;
map['rightImg'] = _rightImg;
3 years ago
return map;
}
}
/// skuId : "1460886581089927168"
/// skuPrice : 88
/// skuStock : 0
class SkuJson {
SkuJson({
String skuId,
3 years ago
String skuPrice,
int skuStock,
}) {
3 years ago
_skuId = skuId;
_skuPrice = skuPrice;
_skuStock = skuStock;
}
3 years ago
SkuJson.fromJson(dynamic json) {
_skuId = json['skuId'];
_skuPrice = json['skuPrice'];
_skuStock = json['skuStock'];
}
3 years ago
String _skuId;
3 years ago
String _skuPrice;
3 years ago
int _skuStock;
String get skuId => _skuId;
3 years ago
String get skuPrice => _skuPrice;
3 years ago
int get skuStock => _skuStock;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['skuId'] = _skuId;
map['skuPrice'] = _skuPrice;
map['skuStock'] = _skuStock;
return map;
}
}