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.
 
 
 
 
 
 

949 lines
37 KiB

/// adminProductVOList : [{"id":"1730509840771448832","groupId":"1730470330532626432","groupName":"托尼老师","productName":"快剪60","productImg":"https://pos.upload.lotus-wallet.com/1196/2023/11/0d49eac6-a13d-4b60-b2eb-539b7636798c.jpg","price":"60.00","applyPrice":"100.00","stock":999,"sellCount":1,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1730509841664835584","createTime":"2023-12-01 16:51:12","createUser":"1729806749562568704","updateTime":"2023-12-01 16:51:12","updateUser":"1729806749562568704","storeId":"1729806749612900352","skuCode":"P202312011651122","skuNameStr":"","productId":"1730509840771448832","skuPrice":"60.00","applyPrice":"100.00","vipPrice":"0.00","packagingFee":"0.00","skuImg":null,"skuStock":999,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1730509841702584320","createTime":"2023-12-01 16:51:12","createUser":"1729806749562568704","updateTime":"2023-12-01 16:51:12","updateUser":"1729806749562568704","skuId":"1730509841664835584","attrId":"1730509841144741888","attrValueId":"1730509841383817216","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}],"skuId":null,"details":"<p>阿萨斯</p>","thumbnailImg":"","info":"AA","tenantCode":"1196","sort":1,"subscribeParam":{"isEnableSubscribe":false,"isEnableSubscribePay":false,"timePeriod":122,"subscribeTimes":["09:00-09:12","09:12-09:24","09:24-09:36","09:36-09:48","09:48-10:00","10:00-10:12","10:12-10:24","10:24-10:36","10:36-10:48","10:48-11:00","11:00-11:12","11:12-11:24","11:24-11:36","11:36-11:48","11:48-12:00","12:00-12:12","12:12-12:24","12:24-12:36","12:36-12:48","12:48-13:00","13:00-13:12","13:12-13:24","13:24-13:36","13:36-13:48","13:48-14:00","14:00-14:12","14:12-14:24","14:24-14:36","14:36-14:48","14:48-15:00","15:00-15:12","15:12-15:24","15:24-15:36","15:36-15:48","15:48-16:00","16:00-16:12","16:12-16:24","16:24-16:36","16:36-16:48","16:48-17:00","17:00-17:12","17:12-17:24","17:24-17:36","17:36-17:48","17:48-18:00","18:00-18:12","18:12-18:24","18:24-18:36","18:36-18:48","18:48-19:00","19:00-19:12","19:12-19:24","19:24-19:36","19:36-19:48","19:48-20:00","20:00-20:12","20:12-20:24","20:24-20:30"],"dayOrDate":0,"startAfterDays":null,"daysValidate":null,"subscribeStartTime":"","subscribeEndTime":"","stores":[]},"storeId":"1729806749612900352","salesRules":{"useCoupon":true,"usePromotion":true,"useBalance":true,"useCash":true,"useVip":true,"userBuyLimit":0}},{"id":"1730470585370148864","groupId":"1730470330532626432","groupName":"托尼老师","productName":"预约测试理发","productImg":"https://pos.upload.lotus-wallet.com/1196/2023/11/828cc656-e60f-4f72-8694-293ec18a95c9.jpg","price":"45.00","applyPrice":"50.00","stock":9997,"sellCount":2,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1730470585613418496","createTime":"2023-12-01 14:15:13","createUser":"1729806749562568704","updateTime":"2023-12-01 14:15:13","updateUser":"1729806749562568704","storeId":"1729806749612900352","skuCode":"P202312011415122","skuNameStr":"","productId":"1730470585370148864","skuPrice":"45.00","applyPrice":"50.00","vipPrice":"0.00","packagingFee":"0.00","skuImg":null,"skuStock":9997,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1730470585663750144","createTime":"2023-12-01 14:15:13","createUser":"1729806749562568704","updateTime":"2023-12-01 14:15:13","updateUser":"1729806749562568704","skuId":"1730470585613418496","attrId":"1730470585470812160","attrValueId":"1730470585508560896","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}],"skuId":null,"details":"<p>啊啊啊</p>","thumbnailImg":"","info":"啊啊啊","tenantCode":"1196","sort":0,"subscribeParam":{"isEnableSubscribe":true,"isEnableSubscribePay":true,"timePeriod":30,"subscribeTimes":["09:00-09:30","09:30-10:00","10:00-10:30","10:30-11:00","11:00-11:30","11:30-12:00","12:00-12:30","12:30-13:00","13:00-13:30","13:30-14:00","14:00-14:30","14:30-15:00","15:00-15:30","15:30-16:00","16:00-16:30","16:30-17:00","17:00-17:30","17:30-18:00","18:00-18:30","18:30-19:00","19:00-19:30","19:30-20:00","20:00-20:30"],"dayOrDate":1,"startAfterDays":null,"daysValidate":null,"subscribeStartTime":"","subscribeEndTime":"","stores":[]},"storeId":"1729806749612900352","salesRules":{"useCoupon":true,"usePromotion":true,"useBalance":true,"useCash":true,"useVip":true,"userBuyLimit":0}},{"id":"1731927791605121024","groupId":"1730470330532626432","groupName":"托尼老师","productName":"洗剪吹","productImg":"https://pos.upload.lotus-wallet.com/1196/2023/11/0d49eac6-a13d-4b60-b2eb-539b7636798c.jpg","price":"0.00","applyPrice":"0.00","stock":0,"sellCount":0,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1731927791819030528","createTime":"2023-12-05 14:45:38","createUser":"1729806749562568704","updateTime":"2023-12-05 14:45:38","updateUser":"1729806749562568704","storeId":"1729806749612900352","skuCode":"P202312051445372","skuNameStr":"","productId":"1731927791605121024","skuPrice":"0.00","applyPrice":"0.00","vipPrice":"0.00","packagingFee":"0.00","skuImg":null,"skuStock":0,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1731927791865167872","createTime":"2023-12-05 14:45:38","createUser":"1729806749562568704","updateTime":"2023-12-05 14:45:38","updateUser":"1729806749562568704","skuId":"1731927791819030528","attrId":"1731927791718367232","attrValueId":"1731927791756115968","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}],"skuId":null,"details":"","thumbnailImg":"","info":"","tenantCode":"1196","sort":0,"subscribeParam":null,"storeId":"1729806749612900352","salesRules":{"useCoupon":true,"usePromotion":true,"useBalance":true,"useCash":true,"useVip":true,"userBuyLimit":0}}]
/// total : 3
class BusinessGoods {
BusinessGoods({
List<AdminProductVoList> adminProductVOList,
num total,}){
_adminProductVOList = adminProductVOList;
_total = total;
}
BusinessGoods.fromJson(dynamic json) {
if (json['adminProductVOList'] != null) {
_adminProductVOList = [];
json['adminProductVOList'].forEach((v) {
_adminProductVOList.add(AdminProductVoList.fromJson(v));
});
}
_total = json['total'];
}
List<AdminProductVoList> _adminProductVOList;
num _total;
BusinessGoods copyWith({ List<AdminProductVoList> adminProductVOList,
num total,
}) => BusinessGoods( adminProductVOList: adminProductVOList ?? _adminProductVOList,
total: total ?? _total,
);
List<AdminProductVoList> get adminProductVOList => _adminProductVOList;
num get total => _total;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_adminProductVOList != null) {
map['adminProductVOList'] = _adminProductVOList.map((v) => v.toJson()).toList();
}
map['total'] = _total;
return map;
}
}
/// id : "1730509840771448832"
/// groupId : "1730470330532626432"
/// groupName : "托尼老师"
/// productName : "快剪60"
/// productImg : "https://pos.upload.lotus-wallet.com/1196/2023/11/0d49eac6-a13d-4b60-b2eb-539b7636798c.jpg"
/// price : "60.00"
/// applyPrice : "100.00"
/// stock : 999
/// sellCount : 1
/// status : 1
/// posShow : true
/// deliveries : null
/// ticketType : null
/// ticketDays : null
/// attrList : null
/// productSkuVOList : [{"id":"1730509841664835584","createTime":"2023-12-01 16:51:12","createUser":"1729806749562568704","updateTime":"2023-12-01 16:51:12","updateUser":"1729806749562568704","storeId":"1729806749612900352","skuCode":"P202312011651122","skuNameStr":"","productId":"1730509840771448832","skuPrice":"60.00","applyPrice":"100.00","vipPrice":"0.00","packagingFee":"0.00","skuImg":null,"skuStock":999,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1730509841702584320","createTime":"2023-12-01 16:51:12","createUser":"1729806749562568704","updateTime":"2023-12-01 16:51:12","updateUser":"1729806749562568704","skuId":"1730509841664835584","attrId":"1730509841144741888","attrValueId":"1730509841383817216","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}]
/// skuId : null
/// details : "<p>阿萨斯</p>"
/// thumbnailImg : ""
/// info : "AA"
/// tenantCode : "1196"
/// sort : 1
/// subscribeParam : {"isEnableSubscribe":false,"isEnableSubscribePay":false,"timePeriod":122,"subscribeTimes":["09:00-09:12","09:12-09:24","09:24-09:36","09:36-09:48","09:48-10:00","10:00-10:12","10:12-10:24","10:24-10:36","10:36-10:48","10:48-11:00","11:00-11:12","11:12-11:24","11:24-11:36","11:36-11:48","11:48-12:00","12:00-12:12","12:12-12:24","12:24-12:36","12:36-12:48","12:48-13:00","13:00-13:12","13:12-13:24","13:24-13:36","13:36-13:48","13:48-14:00","14:00-14:12","14:12-14:24","14:24-14:36","14:36-14:48","14:48-15:00","15:00-15:12","15:12-15:24","15:24-15:36","15:36-15:48","15:48-16:00","16:00-16:12","16:12-16:24","16:24-16:36","16:36-16:48","16:48-17:00","17:00-17:12","17:12-17:24","17:24-17:36","17:36-17:48","17:48-18:00","18:00-18:12","18:12-18:24","18:24-18:36","18:36-18:48","18:48-19:00","19:00-19:12","19:12-19:24","19:24-19:36","19:36-19:48","19:48-20:00","20:00-20:12","20:12-20:24","20:24-20:30"],"dayOrDate":0,"startAfterDays":null,"daysValidate":null,"subscribeStartTime":"","subscribeEndTime":"","stores":[]}
/// storeId : "1729806749612900352"
/// salesRules : {"useCoupon":true,"usePromotion":true,"useBalance":true,"useCash":true,"useVip":true,"userBuyLimit":0}
class AdminProductVoList {
AdminProductVoList({
String id,
String groupId,
String groupName,
String productName,
String productImg,
String price,
String applyPrice,
num stock,
num sellCount,
num status,
bool posShow,
dynamic deliveries,
dynamic ticketType,
dynamic ticketDays,
dynamic attrList,
List<ProductSkuVoList> productSkuVOList,
dynamic skuId,
String details,
String thumbnailImg,
String info,
String tenantCode,
num sort,
SubscribeParam subscribeParam,
String storeId,
SalesRules salesRules,}){
_id = id;
_groupId = groupId;
_groupName = groupName;
_productName = productName;
_productImg = productImg;
_price = price;
_applyPrice = applyPrice;
_stock = stock;
_sellCount = sellCount;
_status = status;
_posShow = posShow;
_deliveries = deliveries;
_ticketType = ticketType;
_ticketDays = ticketDays;
_attrList = attrList;
_productSkuVOList = productSkuVOList;
_skuId = skuId;
_details = details;
_thumbnailImg = thumbnailImg;
_info = info;
_tenantCode = tenantCode;
_sort = sort;
_subscribeParam = subscribeParam;
_storeId = storeId;
_salesRules = salesRules;
}
AdminProductVoList.fromJson(dynamic json) {
_id = json['id'];
_groupId = json['groupId'];
_groupName = json['groupName'];
_productName = json['productName'];
_productImg = json['productImg'];
_price = json['price'];
_applyPrice = json['applyPrice'];
_stock = json['stock'];
_sellCount = json['sellCount'];
_status = json['status'];
_posShow = json['posShow'];
_deliveries = json['deliveries'];
_ticketType = json['ticketType'];
_ticketDays = json['ticketDays'];
_attrList = json['attrList'];
if (json['productSkuVOList'] != null) {
_productSkuVOList = [];
json['productSkuVOList'].forEach((v) {
_productSkuVOList.add(ProductSkuVoList.fromJson(v));
});
}
_skuId = json['skuId'];
_details = json['details'];
_thumbnailImg = json['thumbnailImg'];
_info = json['info'];
_tenantCode = json['tenantCode'];
_sort = json['sort'];
_subscribeParam = json['subscribeParam'] != null ? SubscribeParam.fromJson(json['subscribeParam']) : null;
_storeId = json['storeId'];
_salesRules = json['salesRules'] != null ? SalesRules.fromJson(json['salesRules']) : null;
}
String _id;
String _groupId;
String _groupName;
String _productName;
String _productImg;
String _price;
String _applyPrice;
num _stock;
num _sellCount;
num _status;
bool _posShow;
dynamic _deliveries;
dynamic _ticketType;
dynamic _ticketDays;
dynamic _attrList;
List<ProductSkuVoList> _productSkuVOList;
dynamic _skuId;
String _details;
String _thumbnailImg;
String _info;
String _tenantCode;
num _sort;
SubscribeParam _subscribeParam;
String _storeId;
SalesRules _salesRules;
AdminProductVoList copyWith({ String id,
String groupId,
String groupName,
String productName,
String productImg,
String price,
String applyPrice,
num stock,
num sellCount,
num status,
bool posShow,
dynamic deliveries,
dynamic ticketType,
dynamic ticketDays,
dynamic attrList,
List<ProductSkuVoList> productSkuVOList,
dynamic skuId,
String details,
String thumbnailImg,
String info,
String tenantCode,
num sort,
SubscribeParam subscribeParam,
String storeId,
SalesRules salesRules,
}) => AdminProductVoList( id: id ?? _id,
groupId: groupId ?? _groupId,
groupName: groupName ?? _groupName,
productName: productName ?? _productName,
productImg: productImg ?? _productImg,
price: price ?? _price,
applyPrice: applyPrice ?? _applyPrice,
stock: stock ?? _stock,
sellCount: sellCount ?? _sellCount,
status: status ?? _status,
posShow: posShow ?? _posShow,
deliveries: deliveries ?? _deliveries,
ticketType: ticketType ?? _ticketType,
ticketDays: ticketDays ?? _ticketDays,
attrList: attrList ?? _attrList,
productSkuVOList: productSkuVOList ?? _productSkuVOList,
skuId: skuId ?? _skuId,
details: details ?? _details,
thumbnailImg: thumbnailImg ?? _thumbnailImg,
info: info ?? _info,
tenantCode: tenantCode ?? _tenantCode,
sort: sort ?? _sort,
subscribeParam: subscribeParam ?? _subscribeParam,
storeId: storeId ?? _storeId,
salesRules: salesRules ?? _salesRules,
);
String get id => _id;
String get groupId => _groupId;
String get groupName => _groupName;
String get productName => _productName;
String get productImg => _productImg;
String get price => _price;
String get applyPrice => _applyPrice;
num get stock => _stock;
num get sellCount => _sellCount;
num get status => _status;
bool get posShow => _posShow;
dynamic get deliveries => _deliveries;
dynamic get ticketType => _ticketType;
dynamic get ticketDays => _ticketDays;
dynamic get attrList => _attrList;
List<ProductSkuVoList> get productSkuVOList => _productSkuVOList;
dynamic get skuId => _skuId;
String get details => _details;
String get thumbnailImg => _thumbnailImg;
String get info => _info;
String get tenantCode => _tenantCode;
num get sort => _sort;
SubscribeParam get subscribeParam => _subscribeParam;
String get storeId => _storeId;
SalesRules get salesRules => _salesRules;
bool _isSelect = false;
bool get isSelect => _isSelect;
set isSelect(bool value) {
_isSelect = value;
}
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
map['groupId'] = _groupId;
map['groupName'] = _groupName;
map['productName'] = _productName;
map['productImg'] = _productImg;
map['price'] = _price;
map['applyPrice'] = _applyPrice;
map['stock'] = _stock;
map['sellCount'] = _sellCount;
map['status'] = _status;
map['posShow'] = _posShow;
map['deliveries'] = _deliveries;
map['ticketType'] = _ticketType;
map['ticketDays'] = _ticketDays;
map['attrList'] = _attrList;
if (_productSkuVOList != null) {
map['productSkuVOList'] = _productSkuVOList.map((v) => v.toJson()).toList();
}
map['skuId'] = _skuId;
map['details'] = _details;
map['thumbnailImg'] = _thumbnailImg;
map['info'] = _info;
map['tenantCode'] = _tenantCode;
map['sort'] = _sort;
if (_subscribeParam != null) {
map['subscribeParam'] = _subscribeParam.toJson();
}
map['storeId'] = _storeId;
if (_salesRules != null) {
map['salesRules'] = _salesRules.toJson();
}
return map;
}
}
/// useCoupon : true
/// usePromotion : true
/// useBalance : true
/// useCash : true
/// useVip : true
/// userBuyLimit : 0
class SalesRules {
SalesRules({
bool useCoupon,
bool usePromotion,
bool useBalance,
bool useCash,
bool useVip,
num userBuyLimit,}){
_useCoupon = useCoupon;
_usePromotion = usePromotion;
_useBalance = useBalance;
_useCash = useCash;
_useVip = useVip;
_userBuyLimit = userBuyLimit;
}
SalesRules.fromJson(dynamic json) {
_useCoupon = json['useCoupon'];
_usePromotion = json['usePromotion'];
_useBalance = json['useBalance'];
_useCash = json['useCash'];
_useVip = json['useVip'];
_userBuyLimit = json['userBuyLimit'];
}
bool _useCoupon;
bool _usePromotion;
bool _useBalance;
bool _useCash;
bool _useVip;
num _userBuyLimit;
SalesRules copyWith({ bool useCoupon,
bool usePromotion,
bool useBalance,
bool useCash,
bool useVip,
num userBuyLimit,
}) => SalesRules( useCoupon: useCoupon ?? _useCoupon,
usePromotion: usePromotion ?? _usePromotion,
useBalance: useBalance ?? _useBalance,
useCash: useCash ?? _useCash,
useVip: useVip ?? _useVip,
userBuyLimit: userBuyLimit ?? _userBuyLimit,
);
bool get useCoupon => _useCoupon;
bool get usePromotion => _usePromotion;
bool get useBalance => _useBalance;
bool get useCash => _useCash;
bool get useVip => _useVip;
num get userBuyLimit => _userBuyLimit;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['useCoupon'] = _useCoupon;
map['usePromotion'] = _usePromotion;
map['useBalance'] = _useBalance;
map['useCash'] = _useCash;
map['useVip'] = _useVip;
map['userBuyLimit'] = _userBuyLimit;
return map;
}
}
/// isEnableSubscribe : false
/// isEnableSubscribePay : false
/// timePeriod : 122
/// subscribeTimes : ["09:00-09:12","09:12-09:24","09:24-09:36","09:36-09:48","09:48-10:00","10:00-10:12","10:12-10:24","10:24-10:36","10:36-10:48","10:48-11:00","11:00-11:12","11:12-11:24","11:24-11:36","11:36-11:48","11:48-12:00","12:00-12:12","12:12-12:24","12:24-12:36","12:36-12:48","12:48-13:00","13:00-13:12","13:12-13:24","13:24-13:36","13:36-13:48","13:48-14:00","14:00-14:12","14:12-14:24","14:24-14:36","14:36-14:48","14:48-15:00","15:00-15:12","15:12-15:24","15:24-15:36","15:36-15:48","15:48-16:00","16:00-16:12","16:12-16:24","16:24-16:36","16:36-16:48","16:48-17:00","17:00-17:12","17:12-17:24","17:24-17:36","17:36-17:48","17:48-18:00","18:00-18:12","18:12-18:24","18:24-18:36","18:36-18:48","18:48-19:00","19:00-19:12","19:12-19:24","19:24-19:36","19:36-19:48","19:48-20:00","20:00-20:12","20:12-20:24","20:24-20:30"]
/// dayOrDate : 0
/// startAfterDays : null
/// daysValidate : null
/// subscribeStartTime : ""
/// subscribeEndTime : ""
/// stores : []
class SubscribeParam {
SubscribeParam({
bool isEnableSubscribe,
bool isEnableSubscribePay,
num timePeriod,
List<String> subscribeTimes,
num dayOrDate,
dynamic startAfterDays,
dynamic daysValidate,
String subscribeStartTime,
String subscribeEndTime,
List<dynamic> stores,}){
_isEnableSubscribe = isEnableSubscribe;
_isEnableSubscribePay = isEnableSubscribePay;
_timePeriod = timePeriod;
_subscribeTimes = subscribeTimes;
_dayOrDate = dayOrDate;
_startAfterDays = startAfterDays;
_daysValidate = daysValidate;
_subscribeStartTime = subscribeStartTime;
_subscribeEndTime = subscribeEndTime;
_stores = stores;
}
SubscribeParam.fromJson(dynamic json) {
_isEnableSubscribe = json['isEnableSubscribe'];
_isEnableSubscribePay = json['isEnableSubscribePay'];
_timePeriod = json['timePeriod'];
_subscribeTimes = json['subscribeTimes'] != null ? json['subscribeTimes'].cast<String>() : [];
_dayOrDate = json['dayOrDate'];
_startAfterDays = json['startAfterDays'];
_daysValidate = json['daysValidate'];
_subscribeStartTime = json['subscribeStartTime'];
_subscribeEndTime = json['subscribeEndTime'];
// if (json['stores'] != null) {
// _stores = [];
// json['stores'].forEach((v) {
// _stores.add(Dynamic.fromJson(v));
// });
// }
}
bool _isEnableSubscribe;
bool _isEnableSubscribePay;
num _timePeriod;
List<String> _subscribeTimes;
num _dayOrDate;
dynamic _startAfterDays;
dynamic _daysValidate;
String _subscribeStartTime;
String _subscribeEndTime;
List<dynamic> _stores;
SubscribeParam copyWith({ bool isEnableSubscribe,
bool isEnableSubscribePay,
num timePeriod,
List<String> subscribeTimes,
num dayOrDate,
dynamic startAfterDays,
dynamic daysValidate,
String subscribeStartTime,
String subscribeEndTime,
List<dynamic> stores,
}) => SubscribeParam( isEnableSubscribe: isEnableSubscribe ?? _isEnableSubscribe,
isEnableSubscribePay: isEnableSubscribePay ?? _isEnableSubscribePay,
timePeriod: timePeriod ?? _timePeriod,
subscribeTimes: subscribeTimes ?? _subscribeTimes,
dayOrDate: dayOrDate ?? _dayOrDate,
startAfterDays: startAfterDays ?? _startAfterDays,
daysValidate: daysValidate ?? _daysValidate,
subscribeStartTime: subscribeStartTime ?? _subscribeStartTime,
subscribeEndTime: subscribeEndTime ?? _subscribeEndTime,
stores: stores ?? _stores,
);
bool get isEnableSubscribe => _isEnableSubscribe;
bool get isEnableSubscribePay => _isEnableSubscribePay;
num get timePeriod => _timePeriod;
List<String> get subscribeTimes => _subscribeTimes;
num get dayOrDate => _dayOrDate;
dynamic get startAfterDays => _startAfterDays;
dynamic get daysValidate => _daysValidate;
String get subscribeStartTime => _subscribeStartTime;
String get subscribeEndTime => _subscribeEndTime;
List<dynamic> get stores => _stores;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['isEnableSubscribe'] = _isEnableSubscribe;
map['isEnableSubscribePay'] = _isEnableSubscribePay;
map['timePeriod'] = _timePeriod;
map['subscribeTimes'] = _subscribeTimes;
map['dayOrDate'] = _dayOrDate;
map['startAfterDays'] = _startAfterDays;
map['daysValidate'] = _daysValidate;
map['subscribeStartTime'] = _subscribeStartTime;
map['subscribeEndTime'] = _subscribeEndTime;
if (_stores != null) {
map['stores'] = _stores.map((v) => v.toJson()).toList();
}
return map;
}
}
/// id : "1730509841664835584"
/// createTime : "2023-12-01 16:51:12"
/// createUser : "1729806749562568704"
/// updateTime : "2023-12-01 16:51:12"
/// updateUser : "1729806749562568704"
/// storeId : "1729806749612900352"
/// skuCode : "P202312011651122"
/// skuNameStr : ""
/// productId : "1730509840771448832"
/// skuPrice : "60.00"
/// applyPrice : "100.00"
/// vipPrice : "0.00"
/// packagingFee : "0.00"
/// skuImg : null
/// skuStock : 999
/// autoRenewSkuStock : 0
/// deliveries : 0
/// ticketType : ""
/// ticketWipedTimeTemplateId : null
/// takeType : null
/// ticketDays : "0"
/// ticketExpireTime : "23:59:59"
/// sort : 50
/// setMeal : ""
/// productSetMeals : []
/// weight : 0.0
/// volume : 0.0
/// isDelete : 0
/// material : null
/// version : 0
/// skuTickets : []
/// ticketStyle : ""
/// skuAttrCodeDTOList : null
/// skuAttrList : [{"id":"1730509841702584320","createTime":"2023-12-01 16:51:12","createUser":"1729806749562568704","updateTime":"2023-12-01 16:51:12","updateUser":"1729806749562568704","skuId":"1730509841664835584","attrId":"1730509841144741888","attrValueId":"1730509841383817216","sortOrder":null,"isDelete":0}]
/// setMealDTOList : null
/// discountPrice : ""
class ProductSkuVoList {
ProductSkuVoList({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String storeId,
String skuCode,
String skuNameStr,
String productId,
String skuPrice,
String applyPrice,
String vipPrice,
String packagingFee,
dynamic skuImg,
num skuStock,
num autoRenewSkuStock,
num deliveries,
String ticketType,
dynamic ticketWipedTimeTemplateId,
dynamic takeType,
String ticketDays,
String ticketExpireTime,
num sort,
String setMeal,
List<dynamic> productSetMeals,
num weight,
num volume,
num isDelete,
dynamic material,
num version,
List<dynamic> skuTickets,
String ticketStyle,
dynamic skuAttrCodeDTOList,
List<SkuAttrList> skuAttrList,
dynamic setMealDTOList,
String discountPrice,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_storeId = storeId;
_skuCode = skuCode;
_skuNameStr = skuNameStr;
_productId = productId;
_skuPrice = skuPrice;
_applyPrice = applyPrice;
_vipPrice = vipPrice;
_packagingFee = packagingFee;
_skuImg = skuImg;
_skuStock = skuStock;
_autoRenewSkuStock = autoRenewSkuStock;
_deliveries = deliveries;
_ticketType = ticketType;
_ticketWipedTimeTemplateId = ticketWipedTimeTemplateId;
_takeType = takeType;
_ticketDays = ticketDays;
_ticketExpireTime = ticketExpireTime;
_sort = sort;
_setMeal = setMeal;
_productSetMeals = productSetMeals;
_weight = weight;
_volume = volume;
_isDelete = isDelete;
_material = material;
_version = version;
_skuTickets = skuTickets;
_ticketStyle = ticketStyle;
_skuAttrCodeDTOList = skuAttrCodeDTOList;
_skuAttrList = skuAttrList;
_setMealDTOList = setMealDTOList;
_discountPrice = discountPrice;
}
ProductSkuVoList.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_storeId = json['storeId'];
_skuCode = json['skuCode'];
_skuNameStr = json['skuNameStr'];
_productId = json['productId'];
_skuPrice = json['skuPrice'];
_applyPrice = json['applyPrice'];
_vipPrice = json['vipPrice'];
_packagingFee = json['packagingFee'];
_skuImg = json['skuImg'];
_skuStock = json['skuStock'];
_autoRenewSkuStock = json['autoRenewSkuStock'];
_deliveries = json['deliveries'];
_ticketType = json['ticketType'];
_ticketWipedTimeTemplateId = json['ticketWipedTimeTemplateId'];
_takeType = json['takeType'];
_ticketDays = json['ticketDays'];
_ticketExpireTime = json['ticketExpireTime'];
_sort = json['sort'];
_setMeal = json['setMeal'];
// if (json['productSetMeals'] != null) {
// _productSetMeals = [];
// json['productSetMeals'].forEach((v) {
// _productSetMeals.add(Dynamic.fromJson(v));
// });
// }
_weight = json['weight'];
_volume = json['volume'];
_isDelete = json['isDelete'];
_material = json['material'];
_version = json['version'];
// if (json['skuTickets'] != null) {
// _skuTickets = [];
// json['skuTickets'].forEach((v) {
// _skuTickets.add(Dynamic.fromJson(v));
// });
// }
_ticketStyle = json['ticketStyle'];
_skuAttrCodeDTOList = json['skuAttrCodeDTOList'];
if (json['skuAttrList'] != null) {
_skuAttrList = [];
json['skuAttrList'].forEach((v) {
_skuAttrList.add(SkuAttrList.fromJson(v));
});
}
_setMealDTOList = json['setMealDTOList'];
_discountPrice = json['discountPrice'];
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _storeId;
String _skuCode;
String _skuNameStr;
String _productId;
String _skuPrice;
String _applyPrice;
String _vipPrice;
String _packagingFee;
dynamic _skuImg;
num _skuStock;
num _autoRenewSkuStock;
num _deliveries;
String _ticketType;
dynamic _ticketWipedTimeTemplateId;
dynamic _takeType;
String _ticketDays;
String _ticketExpireTime;
num _sort;
String _setMeal;
List<dynamic> _productSetMeals;
num _weight;
num _volume;
num _isDelete;
dynamic _material;
num _version;
List<dynamic> _skuTickets;
String _ticketStyle;
dynamic _skuAttrCodeDTOList;
List<SkuAttrList> _skuAttrList;
dynamic _setMealDTOList;
String _discountPrice;
ProductSkuVoList copyWith({ String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String storeId,
String skuCode,
String skuNameStr,
String productId,
String skuPrice,
String applyPrice,
String vipPrice,
String packagingFee,
dynamic skuImg,
num skuStock,
num autoRenewSkuStock,
num deliveries,
String ticketType,
dynamic ticketWipedTimeTemplateId,
dynamic takeType,
String ticketDays,
String ticketExpireTime,
num sort,
String setMeal,
List<dynamic> productSetMeals,
num weight,
num volume,
num isDelete,
dynamic material,
num version,
List<dynamic> skuTickets,
String ticketStyle,
dynamic skuAttrCodeDTOList,
List<SkuAttrList> skuAttrList,
dynamic setMealDTOList,
String discountPrice,
}) => ProductSkuVoList( id: id ?? _id,
createTime: createTime ?? _createTime,
createUser: createUser ?? _createUser,
updateTime: updateTime ?? _updateTime,
updateUser: updateUser ?? _updateUser,
storeId: storeId ?? _storeId,
skuCode: skuCode ?? _skuCode,
skuNameStr: skuNameStr ?? _skuNameStr,
productId: productId ?? _productId,
skuPrice: skuPrice ?? _skuPrice,
applyPrice: applyPrice ?? _applyPrice,
vipPrice: vipPrice ?? _vipPrice,
packagingFee: packagingFee ?? _packagingFee,
skuImg: skuImg ?? _skuImg,
skuStock: skuStock ?? _skuStock,
autoRenewSkuStock: autoRenewSkuStock ?? _autoRenewSkuStock,
deliveries: deliveries ?? _deliveries,
ticketType: ticketType ?? _ticketType,
ticketWipedTimeTemplateId: ticketWipedTimeTemplateId ?? _ticketWipedTimeTemplateId,
takeType: takeType ?? _takeType,
ticketDays: ticketDays ?? _ticketDays,
ticketExpireTime: ticketExpireTime ?? _ticketExpireTime,
sort: sort ?? _sort,
setMeal: setMeal ?? _setMeal,
productSetMeals: productSetMeals ?? _productSetMeals,
weight: weight ?? _weight,
volume: volume ?? _volume,
isDelete: isDelete ?? _isDelete,
material: material ?? _material,
version: version ?? _version,
skuTickets: skuTickets ?? _skuTickets,
ticketStyle: ticketStyle ?? _ticketStyle,
skuAttrCodeDTOList: skuAttrCodeDTOList ?? _skuAttrCodeDTOList,
skuAttrList: skuAttrList ?? _skuAttrList,
setMealDTOList: setMealDTOList ?? _setMealDTOList,
discountPrice: discountPrice ?? _discountPrice,
);
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 skuCode => _skuCode;
String get skuNameStr => _skuNameStr;
String get productId => _productId;
String get skuPrice => _skuPrice;
String get applyPrice => _applyPrice;
String get vipPrice => _vipPrice;
String get packagingFee => _packagingFee;
dynamic get skuImg => _skuImg;
num get skuStock => _skuStock;
num get autoRenewSkuStock => _autoRenewSkuStock;
num get deliveries => _deliveries;
String get ticketType => _ticketType;
dynamic get ticketWipedTimeTemplateId => _ticketWipedTimeTemplateId;
dynamic get takeType => _takeType;
String get ticketDays => _ticketDays;
String get ticketExpireTime => _ticketExpireTime;
num get sort => _sort;
String get setMeal => _setMeal;
List<dynamic> get productSetMeals => _productSetMeals;
num get weight => _weight;
num get volume => _volume;
num get isDelete => _isDelete;
dynamic get material => _material;
num get version => _version;
List<dynamic> get skuTickets => _skuTickets;
String get ticketStyle => _ticketStyle;
dynamic get skuAttrCodeDTOList => _skuAttrCodeDTOList;
List<SkuAttrList> get skuAttrList => _skuAttrList;
dynamic get setMealDTOList => _setMealDTOList;
String get discountPrice => _discountPrice;
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['skuCode'] = _skuCode;
map['skuNameStr'] = _skuNameStr;
map['productId'] = _productId;
map['skuPrice'] = _skuPrice;
map['applyPrice'] = _applyPrice;
map['vipPrice'] = _vipPrice;
map['packagingFee'] = _packagingFee;
map['skuImg'] = _skuImg;
map['skuStock'] = _skuStock;
map['autoRenewSkuStock'] = _autoRenewSkuStock;
map['deliveries'] = _deliveries;
map['ticketType'] = _ticketType;
map['ticketWipedTimeTemplateId'] = _ticketWipedTimeTemplateId;
map['takeType'] = _takeType;
map['ticketDays'] = _ticketDays;
map['ticketExpireTime'] = _ticketExpireTime;
map['sort'] = _sort;
map['setMeal'] = _setMeal;
if (_productSetMeals != null) {
map['productSetMeals'] = _productSetMeals.map((v) => v.toJson()).toList();
}
map['weight'] = _weight;
map['volume'] = _volume;
map['isDelete'] = _isDelete;
map['material'] = _material;
map['version'] = _version;
if (_skuTickets != null) {
map['skuTickets'] = _skuTickets.map((v) => v.toJson()).toList();
}
map['ticketStyle'] = _ticketStyle;
map['skuAttrCodeDTOList'] = _skuAttrCodeDTOList;
if (_skuAttrList != null) {
map['skuAttrList'] = _skuAttrList.map((v) => v.toJson()).toList();
}
map['setMealDTOList'] = _setMealDTOList;
map['discountPrice'] = _discountPrice;
return map;
}
}
/// id : "1730509841702584320"
/// createTime : "2023-12-01 16:51:12"
/// createUser : "1729806749562568704"
/// updateTime : "2023-12-01 16:51:12"
/// updateUser : "1729806749562568704"
/// skuId : "1730509841664835584"
/// attrId : "1730509841144741888"
/// attrValueId : "1730509841383817216"
/// sortOrder : null
/// isDelete : 0
class SkuAttrList {
SkuAttrList({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String skuId,
String attrId,
String attrValueId,
dynamic sortOrder,
num isDelete,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_skuId = skuId;
_attrId = attrId;
_attrValueId = attrValueId;
_sortOrder = sortOrder;
_isDelete = isDelete;
}
SkuAttrList.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_skuId = json['skuId'];
_attrId = json['attrId'];
_attrValueId = json['attrValueId'];
_sortOrder = json['sortOrder'];
_isDelete = json['isDelete'];
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _skuId;
String _attrId;
String _attrValueId;
dynamic _sortOrder;
num _isDelete;
SkuAttrList copyWith({ String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String skuId,
String attrId,
String attrValueId,
dynamic sortOrder,
num isDelete,
}) => SkuAttrList( id: id ?? _id,
createTime: createTime ?? _createTime,
createUser: createUser ?? _createUser,
updateTime: updateTime ?? _updateTime,
updateUser: updateUser ?? _updateUser,
skuId: skuId ?? _skuId,
attrId: attrId ?? _attrId,
attrValueId: attrValueId ?? _attrValueId,
sortOrder: sortOrder ?? _sortOrder,
isDelete: isDelete ?? _isDelete,
);
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get skuId => _skuId;
String get attrId => _attrId;
String get attrValueId => _attrValueId;
dynamic get sortOrder => _sortOrder;
num 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['skuId'] = _skuId;
map['attrId'] = _attrId;
map['attrValueId'] = _attrValueId;
map['sortOrder'] = _sortOrder;
map['isDelete'] = _isDelete;
return map;
}
}