|
|
|
/// actTemplate : {"id":"1478267568996220928","createTime":"2022-01-04 15:30:28","createUser":"1364043181062094848","updateTime":"2022-01-04 15:30:28","updateUser":"1364043181062094848","storeId":"1460885296764682240","actName":"砍价","actDesc":"","type":3,"limitTime":2,"limitNumber":5,"coverImg":"https://pos.upload.gznl.top/1179/2022/01/792bda39-3c2e-434f-8e57-02c62163add4.png","shareImg":"https://pos.upload.gznl.top/1179/2022/01/68f9b6d4-16a8-4bcf-aab6-09f95d1d2a9a.png","bannerImg":"https://pos.upload.gznl.top/1179/2022/01/5efd74a8-be45-4723-a878-0513d6bfd9f8.png","state":1,"allDay":true,"startTime":"2022-01-01 00:00:00","endTime":"2022-01-31 00:00:00","isDelete":0}
|
|
|
|
/// timeProductList : [{"actTime":{"id":"1478267569205936128","createTime":"2022-01-04 15:30:28","createUser":"1364043181062094848","updateTime":"2022-01-04 15:30:28","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","allDay":true,"startHour":null,"endHour":null,"isDelete":0},"productList":[{"id":"1478267723770232832","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","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},{"id":"1478267723787010048","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460896670593056768","productName":"甄果酥","productImg":"https://pos.upload.gznl.top/1179/2021/11/c4e6ea91-9cc1-4f5f-86e3-91e323ab2d53.jpg","productPrice":"78.00","promotionPrice":"78.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460896670697914368","skuPrice":78,"skuStock":100}],"isDelete":0},{"id":"1478267723791204352","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460899864027070464","productName":"肺宝酵素","productImg":"https://pos.upload.gznl.top/1179/2021/11/ccf4293f-004c-4450-bcc7-c45e47444fe3.jpg","productPrice":"328.00","promotionPrice":"328.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460899864102567936","skuPrice":328,"skuStock":100}],"isDelete":0},{"id":"1478267723795398656","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460901466356056064","productName":"纤盈酵素","productImg":"https://pos.upload.gznl.top/1179/2021/11/49931aa8-7eda-4df2-876f-a6fa19ac0682.jpg","productPrice":"328.00","promotionPrice":"328.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460901466435747840","skuPrice":328,"skuStock":100}],"isDelete":0},{"id":"1478267723795398657","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1461168275898499072","productName":"生态桂圆","productImg":"https://pos.upload.gznl.top/1179/2021/11/eeef5404-5533-46fc-b650-0901e0cf4580.jpg","productPrice":"60.00","promotionPrice":"60.00","productStock":200,"sellCount":0,"skuJson":[{"skuId":"1461168275957219328","skuPrice":60,"skuStock":100},{"skuId":"1461168275982385152","skuPrice":170,"skuStock":100}],"isDelete":0},{"id":"1478267723799592960","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1461261296568631296","productName":"麦芽糖","productImg":"https://pos.upload.gznl.top/1179/2021/11/2dd21e14-f221-46b5-8d88-2812fbe9ab45.jpg","productPrice":"29.80","promotionPrice":"29.80","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1461261296623157248","skuPrice":29.8,"skuStock":100}],"isDelete":0},{"id":"1478267723803787264","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 1
|
|
|
|
|
|
|
|
class ActivityAreaList {
|
|
|
|
ActivityAreaList({
|
|
|
|
ActTemplate actTemplate,
|
|
|
|
List<TimeProductList> timeProductList,}){
|
|
|
|
_actTemplate = actTemplate;
|
|
|
|
_timeProductList = timeProductList;
|
|
|
|
}
|
|
|
|
|
|
|
|
ActivityAreaList.fromJson(dynamic json) {
|
|
|
|
_actTemplate = json['actTemplate'] != null ? ActTemplate.fromJson(json['actTemplate']) : null;
|
|
|
|
if (json['timeProductList'] != null) {
|
|
|
|
_timeProductList = [];
|
|
|
|
json['timeProductList'].forEach((v) {
|
|
|
|
_timeProductList.add(TimeProductList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ActTemplate _actTemplate;
|
|
|
|
List<TimeProductList> _timeProductList;
|
|
|
|
|
|
|
|
ActTemplate get actTemplate => _actTemplate;
|
|
|
|
List<TimeProductList> get timeProductList => _timeProductList;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
if (_actTemplate != null) {
|
|
|
|
map['actTemplate'] = _actTemplate.toJson();
|
|
|
|
}
|
|
|
|
if (_timeProductList != null) {
|
|
|
|
map['timeProductList'] = _timeProductList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// actTime : {"id":"1478267569205936128","createTime":"2022-01-04 15:30:28","createUser":"1364043181062094848","updateTime":"2022-01-04 15:30:28","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","allDay":true,"startHour":null,"endHour":null,"isDelete":0}
|
|
|
|
/// productList : [{"id":"1478267723770232832","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","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},{"id":"1478267723787010048","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460896670593056768","productName":"甄果酥","productImg":"https://pos.upload.gznl.top/1179/2021/11/c4e6ea91-9cc1-4f5f-86e3-91e323ab2d53.jpg","productPrice":"78.00","promotionPrice":"78.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460896670697914368","skuPrice":78,"skuStock":100}],"isDelete":0},{"id":"1478267723791204352","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460899864027070464","productName":"肺宝酵素","productImg":"https://pos.upload.gznl.top/1179/2021/11/ccf4293f-004c-4450-bcc7-c45e47444fe3.jpg","productPrice":"328.00","promotionPrice":"328.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460899864102567936","skuPrice":328,"skuStock":100}],"isDelete":0},{"id":"1478267723795398656","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1460901466356056064","productName":"纤盈酵素","productImg":"https://pos.upload.gznl.top/1179/2021/11/49931aa8-7eda-4df2-876f-a6fa19ac0682.jpg","productPrice":"328.00","promotionPrice":"328.00","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1460901466435747840","skuPrice":328,"skuStock":100}],"isDelete":0},{"id":"1478267723795398657","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1461168275898499072","productName":"生态桂圆","productImg":"https://pos.upload.gznl.top/1179/2021/11/eeef5404-5533-46fc-b650-0901e0cf4580.jpg","productPrice":"60.00","promotionPrice":"60.00","productStock":200,"sellCount":0,"skuJson":[{"skuId":"1461168275957219328","skuPrice":60,"skuStock":100},{"skuId":"1461168275982385152","skuPrice":170,"skuStock":100}],"isDelete":0},{"id":"1478267723799592960","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1461261296568631296","productName":"麦芽糖","productImg":"https://pos.upload.gznl.top/1179/2021/11/2dd21e14-f221-46b5-8d88-2812fbe9ab45.jpg","productPrice":"29.80","promotionPrice":"29.80","productStock":100,"sellCount":0,"skuJson":[{"skuId":"1461261296623157248","skuPrice":29.8,"skuStock":100}],"isDelete":0},{"id":"1478267723803787264","createTime":"2022-01-04 15:31:05","createUser":"1364043181062094848","updateTime":"2022-01-04 15:31:05","updateUser":"1364043181062094848","storeId":"1460885296764682240","templateId":"1478267568996220928","timeId":"1478267569205936128","productId":"1461263843052224512","productName":"心耕年糕400g/袋*6","productImg":"https://pos.upload.gznl.top/1179/2021/11/3f3fcf7a-c477-4a6b-a689-89b1ff4c3528.jpg","productPrice
|
|
|
|
|
|
|
|
class TimeProductList {
|
|
|
|
TimeProductList({
|
|
|
|
ActTime actTime,
|
|
|
|
List<ProductList> productList,}){
|
|
|
|
_actTime = actTime;
|
|
|
|
_productList = productList;
|
|
|
|
}
|
|
|
|
|
|
|
|
TimeProductList.fromJson(dynamic json) {
|
|
|
|
_actTime = json['actTime'] != null ? ActTime.fromJson(json['actTime']) : null;
|
|
|
|
if (json['productList'] != null) {
|
|
|
|
_productList = [];
|
|
|
|
json['productList'].forEach((v) {
|
|
|
|
_productList.add(ProductList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ActTime _actTime;
|
|
|
|
List<ProductList> _productList;
|
|
|
|
|
|
|
|
ActTime get actTime => _actTime;
|
|
|
|
List<ProductList> get productList => _productList;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
if (_actTime != null) {
|
|
|
|
map['actTime'] = _actTime.toJson();
|
|
|
|
}
|
|
|
|
if (_productList != null) {
|
|
|
|
map['productList'] = _productList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1478267723770232832"
|
|
|
|
/// createTime : "2022-01-04 15:31:05"
|
|
|
|
/// createUser : "1364043181062094848"
|
|
|
|
/// updateTime : "2022-01-04 15:31:05"
|
|
|
|
/// updateUser : "1364043181062094848"
|
|
|
|
/// storeId : "1460885296764682240"
|
|
|
|
/// templateId : "1478267568996220928"
|
|
|
|
/// timeId : "1478267569205936128"
|
|
|
|
/// 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 ProductList {
|
|
|
|
ProductList({
|
|
|
|
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,
|
|
|
|
dynamic sellCount,
|
|
|
|
List<SkuJson> skuJson,
|
|
|
|
dynamic isDelete,}){
|
|
|
|
_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;
|
|
|
|
}
|
|
|
|
|
|
|
|
ProductList.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'];
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
dynamic _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;
|
|
|
|
String get templateId => _templateId;
|
|
|
|
String get timeId => _timeId;
|
|
|
|
String get productId => _productId;
|
|
|
|
String get productName => _productName;
|
|
|
|
String get productImg => _productImg;
|
|
|
|
String get productPrice => _productPrice;
|
|
|
|
String get promotionPrice => _promotionPrice;
|
|
|
|
int get productStock => _productStock;
|
|
|
|
int get sellCount => _sellCount;
|
|
|
|
List<SkuJson> get skuJson => _skuJson;
|
|
|
|
dynamic 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['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;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// skuId : "1460886581089927168"
|
|
|
|
/// skuPrice : 88
|
|
|
|
/// skuStock : 0
|
|
|
|
|
|
|
|
class SkuJson {
|
|
|
|
SkuJson({
|
|
|
|
String skuId,
|
|
|
|
dynamic skuPrice,
|
|
|
|
dynamic skuStock,}){
|
|
|
|
_skuId = skuId;
|
|
|
|
_skuPrice = skuPrice;
|
|
|
|
_skuStock = skuStock;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkuJson.fromJson(dynamic json) {
|
|
|
|
_skuId = json['skuId'];
|
|
|
|
_skuPrice = json['skuPrice'];
|
|
|
|
_skuStock = json['skuStock'];
|
|
|
|
}
|
|
|
|
String _skuId;
|
|
|
|
dynamic _skuPrice;
|
|
|
|
dynamic _skuStock;
|
|
|
|
|
|
|
|
String get skuId => _skuId;
|
|
|
|
dynamic get skuPrice => _skuPrice;
|
|
|
|
dynamic get skuStock => _skuStock;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['skuId'] = _skuId;
|
|
|
|
map['skuPrice'] = _skuPrice;
|
|
|
|
map['skuStock'] = _skuStock;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1478267569205936128"
|
|
|
|
/// createTime : "2022-01-04 15:30:28"
|
|
|
|
/// createUser : "1364043181062094848"
|
|
|
|
/// updateTime : "2022-01-04 15:30:28"
|
|
|
|
/// updateUser : "1364043181062094848"
|
|
|
|
/// storeId : "1460885296764682240"
|
|
|
|
/// templateId : "1478267568996220928"
|
|
|
|
/// allDay : true
|
|
|
|
/// startHour : null
|
|
|
|
/// endHour : null
|
|
|
|
/// isDelete : 0
|
|
|
|
|
|
|
|
class ActTime {
|
|
|
|
ActTime({
|
|
|
|
String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String storeId,
|
|
|
|
String templateId,
|
|
|
|
bool allDay,
|
|
|
|
dynamic startHour,
|
|
|
|
dynamic endHour,
|
|
|
|
dynamic isDelete,}){
|
|
|
|
_id = id;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_storeId = storeId;
|
|
|
|
_templateId = templateId;
|
|
|
|
_allDay = allDay;
|
|
|
|
_startHour = startHour;
|
|
|
|
_endHour = endHour;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
}
|
|
|
|
|
|
|
|
ActTime.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
_createUser = json['createUser'];
|
|
|
|
_updateTime = json['updateTime'];
|
|
|
|
_updateUser = json['updateUser'];
|
|
|
|
_storeId = json['storeId'];
|
|
|
|
_templateId = json['templateId'];
|
|
|
|
_allDay = json['allDay'];
|
|
|
|
_startHour = json['startHour'];
|
|
|
|
_endHour = json['endHour'];
|
|
|
|
_isDelete = json['isDelete'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _createTime;
|
|
|
|
String _createUser;
|
|
|
|
String _updateTime;
|
|
|
|
String _updateUser;
|
|
|
|
String _storeId;
|
|
|
|
String _templateId;
|
|
|
|
bool _allDay;
|
|
|
|
dynamic _startHour;
|
|
|
|
dynamic _endHour;
|
|
|
|
dynamic _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;
|
|
|
|
String get templateId => _templateId;
|
|
|
|
bool get allDay => _allDay;
|
|
|
|
dynamic get startHour => _startHour;
|
|
|
|
dynamic get endHour => _endHour;
|
|
|
|
dynamic 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['templateId'] = _templateId;
|
|
|
|
map['allDay'] = _allDay;
|
|
|
|
map['startHour'] = _startHour;
|
|
|
|
map['endHour'] = _endHour;
|
|
|
|
map['isDelete'] = _isDelete;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1478267568996220928"
|
|
|
|
/// createTime : "2022-01-04 15:30:28"
|
|
|
|
/// createUser : "1364043181062094848"
|
|
|
|
/// updateTime : "2022-01-04 15:30:28"
|
|
|
|
/// updateUser : "1364043181062094848"
|
|
|
|
/// storeId : "1460885296764682240"
|
|
|
|
/// actName : "砍价"
|
|
|
|
/// actDesc : ""
|
|
|
|
/// type : 3
|
|
|
|
/// limitTime : 2
|
|
|
|
/// limitNumber : 5
|
|
|
|
/// coverImg : "https://pos.upload.gznl.top/1179/2022/01/792bda39-3c2e-434f-8e57-02c62163add4.png"
|
|
|
|
/// shareImg : "https://pos.upload.gznl.top/1179/2022/01/68f9b6d4-16a8-4bcf-aab6-09f95d1d2a9a.png"
|
|
|
|
/// bannerImg : "https://pos.upload.gznl.top/1179/2022/01/5efd74a8-be45-4723-a878-0513d6bfd9f8.png"
|
|
|
|
/// state : 1
|
|
|
|
/// allDay : true
|
|
|
|
/// startTime : "2022-01-01 00:00:00"
|
|
|
|
/// endTime : "2022-01-31 00:00:00"
|
|
|
|
/// isDelete : 0
|
|
|
|
|
|
|
|
class ActTemplate {
|
|
|
|
ActTemplate({
|
|
|
|
String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String storeId,
|
|
|
|
String actName,
|
|
|
|
String actDesc,
|
|
|
|
dynamic type,
|
|
|
|
dynamic limitTime,
|
|
|
|
dynamic limitNumber,
|
|
|
|
String coverImg,
|
|
|
|
String shareImg,
|
|
|
|
String bannerImg,
|
|
|
|
dynamic state,
|
|
|
|
bool allDay,
|
|
|
|
String startTime,
|
|
|
|
String endTime,
|
|
|
|
dynamic isDelete,}){
|
|
|
|
_id = id;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_storeId = storeId;
|
|
|
|
_actName = actName;
|
|
|
|
_actDesc = actDesc;
|
|
|
|
_type = type;
|
|
|
|
_limitTime = limitTime;
|
|
|
|
_limitNumber = limitNumber;
|
|
|
|
_coverImg = coverImg;
|
|
|
|
_shareImg = shareImg;
|
|
|
|
_bannerImg = bannerImg;
|
|
|
|
_state = state;
|
|
|
|
_allDay = allDay;
|
|
|
|
_startTime = startTime;
|
|
|
|
_endTime = endTime;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
}
|
|
|
|
|
|
|
|
ActTemplate.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
_createUser = json['createUser'];
|
|
|
|
_updateTime = json['updateTime'];
|
|
|
|
_updateUser = json['updateUser'];
|
|
|
|
_storeId = json['storeId'];
|
|
|
|
_actName = json['actName'];
|
|
|
|
_actDesc = json['actDesc'];
|
|
|
|
_type = json['type'];
|
|
|
|
_limitTime = json['limitTime'];
|
|
|
|
_limitNumber = json['limitNumber'];
|
|
|
|
_coverImg = json['coverImg'];
|
|
|
|
_shareImg = json['shareImg'];
|
|
|
|
_bannerImg = json['bannerImg'];
|
|
|
|
_state = json['state'];
|
|
|
|
_allDay = json['allDay'];
|
|
|
|
_startTime = json['startTime'];
|
|
|
|
_endTime = json['endTime'];
|
|
|
|
_isDelete = json['isDelete'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _createTime;
|
|
|
|
String _createUser;
|
|
|
|
String _updateTime;
|
|
|
|
String _updateUser;
|
|
|
|
String _storeId;
|
|
|
|
String _actName;
|
|
|
|
String _actDesc;
|
|
|
|
dynamic _type;
|
|
|
|
dynamic _limitTime;
|
|
|
|
dynamic _limitNumber;
|
|
|
|
String _coverImg;
|
|
|
|
String _shareImg;
|
|
|
|
String _bannerImg;
|
|
|
|
dynamic _state;
|
|
|
|
bool _allDay;
|
|
|
|
String _startTime;
|
|
|
|
String _endTime;
|
|
|
|
dynamic _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;
|
|
|
|
String get actName => _actName;
|
|
|
|
String get actDesc => _actDesc;
|
|
|
|
dynamic get type => _type;
|
|
|
|
dynamic get limitTime => _limitTime;
|
|
|
|
dynamic get limitNumber => _limitNumber;
|
|
|
|
String get coverImg => _coverImg;
|
|
|
|
String get shareImg => _shareImg;
|
|
|
|
String get bannerImg => _bannerImg;
|
|
|
|
dynamic get state => _state;
|
|
|
|
bool get allDay => _allDay;
|
|
|
|
String get startTime => _startTime;
|
|
|
|
String get endTime => _endTime;
|
|
|
|
dynamic 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['actName'] = _actName;
|
|
|
|
map['actDesc'] = _actDesc;
|
|
|
|
map['type'] = _type;
|
|
|
|
map['limitTime'] = _limitTime;
|
|
|
|
map['limitNumber'] = _limitNumber;
|
|
|
|
map['coverImg'] = _coverImg;
|
|
|
|
map['shareImg'] = _shareImg;
|
|
|
|
map['bannerImg'] = _bannerImg;
|
|
|
|
map['state'] = _state;
|
|
|
|
map['allDay'] = _allDay;
|
|
|
|
map['startTime'] = _startTime;
|
|
|
|
map['endTime'] = _endTime;
|
|
|
|
map['isDelete'] = _isDelete;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|