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.
 
 
 
 
 
 

266 lines
9.8 KiB

/// id : "1435148069191548928"
/// storeId : "1333246101343436800"
/// groupName : "<EFBFBD><EFBFBD>Ʒ<EFBFBD>人"
/// groupImg : "https://pos.upload.gznl.top/1175/2021/09/c9abb054-4509-4f22-9671-6f712ab7e493.webp"
/// sort : 0
/// productList : [{"id":"1440501052276211712","supplierName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productName":"֧<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","sellDesc":"","productCode":"PRO202109221019480000000000001","weight":"0","applyPrice":"0.00","price":"0.01","stock":-48,"sellCount":48,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/ade72b41-23a2-4f29-ae50-4e620b7e9011.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null},{"id":"1435893909921202176","supplierName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","sellDesc":"","productCode":"PRO202109091712400000000000003","weight":"0","applyPrice":"0.00","price":"9999.00","stock":-10,"sellCount":10,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/1d212bc1-b952-4aba-a870-8538009da680.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null},{"id":"1435781813317402624","supplierName":"<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"ƴ<EFBFBD>̲<EFBFBD><EFBFBD><EFBFBD>","productName":"ƴ<EFBFBD>̲<EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>)","sellDesc":"","productCode":"PRO202109090947140000000000001","weight":"0","applyPrice":"0.00","price":"2.00","stock":-15,"sellCount":17,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/c1412e9a-2c5a-4658-9850-8dde8d1e9321.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null}]
/// productPageVO : null
class FindMiNiGroupList {
String id;
String storeId;
String groupName;
String groupImg;
int sort;
double goodsIndex = 0;
double height = 0;
List<ProductListBean> productList;
dynamic productPageVO;
static FindMiNiGroupList fromJson(Map<String, dynamic> map) {
if (map == null) return null;
FindMiNiGroupList findMiNiGroupListBean = FindMiNiGroupList();
findMiNiGroupListBean.id = map['id'];
findMiNiGroupListBean.storeId = map['storeId'];
findMiNiGroupListBean.groupName = map['groupName'];
findMiNiGroupListBean.groupImg = map['groupImg'];
findMiNiGroupListBean.sort = map['sort'];
findMiNiGroupListBean.productList = []..addAll(
(map['productList'] as List ?? []).map((o) => ProductListBean.fromJson(o))
);
findMiNiGroupListBean.productPageVO = map['productPageVO'];
return findMiNiGroupListBean;
}
Map toJson() => {
"id": id,
"storeId": storeId,
"groupName": groupName,
"groupImg": groupImg,
"sort": sort,
"productList": productList,
"productPageVO": productPageVO,
};
}
/// id : "1440501052276211712"
/// supplierName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// storeId : "1333246101343436800"
/// categoryId : "1300688133322440704"
/// groupId : "1435148069191548928"
/// shortName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// productName : "֧<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// sellDesc : ""
/// productCode : "PRO202109221019480000000000001"
/// weight : "0"
/// applyPrice : "0.00"
/// price : "0.01"
/// stock : -48
/// sellCount : 48
/// needLogistics : 1
/// oversold : 1
/// status : 1
/// posShow : true
/// attrStyle : 0
/// isDelete : 0
/// productAttrValues : null
/// skuList : null
/// imgPathList : null
/// buyNum : 0
/// imgPath : "https://pos.upload.gznl.top/1175/2021/09/ade72b41-23a2-4f29-ae50-4e620b7e9011.webp"
/// setMeal : 1
/// printerFlag : "DEFAULT"
/// markProductNone : null
class ProductListBean {
String id;
String supplierName;
String storeId;
String categoryId;
String groupId;
String shortName;
String productName;
String sellDesc;
String productCode;
String weight;
String applyPrice;
String price;
String vipPrice;
int stock;
int sellCount;
int needLogistics;
int oversold;
int status;
bool posShow;
int attrStyle;
int isDelete;
dynamic productAttrValues;
dynamic skuList;
dynamic imgPathList;
int buyNum;
String imgPath;
int setMeal;
String printerFlag;
dynamic markProductNone;
SubscribeParam subscribeParam;
static ProductListBean fromJson(Map<String, dynamic> map) {
if (map == null) return null;
ProductListBean productListBean = ProductListBean();
productListBean.id = map['id'];
productListBean.supplierName = map['supplierName'];
productListBean.storeId = map['storeId'];
productListBean.categoryId = map['categoryId'];
productListBean.groupId = map['groupId'];
productListBean.shortName = map['shortName'];
productListBean.productName = map['productName'];
productListBean.sellDesc = map['sellDesc'];
productListBean.productCode = map['productCode'];
productListBean.weight = map['weight'];
productListBean.applyPrice = map['applyPrice'];
productListBean.price = map['price'];
productListBean.vipPrice = map['vipPrice'];
productListBean.stock = map['stock'];
productListBean.sellCount = map['sellCount'];
productListBean.needLogistics = map['needLogistics'];
productListBean.oversold = map['oversold'];
productListBean.status = map['status'];
productListBean.posShow = map['posShow'];
productListBean.attrStyle = map['attrStyle'];
productListBean.isDelete = map['isDelete'];
productListBean.productAttrValues = map['productAttrValues'];
productListBean.skuList = map['skuList'];
productListBean.imgPathList = map['imgPathList'];
productListBean.buyNum = map['buyNum'];
productListBean.imgPath = map['imgPath'];
productListBean.setMeal = map['setMeal'];
productListBean.printerFlag = map['printerFlag'];
productListBean.markProductNone = map['markProductNone'];
productListBean.subscribeParam = SubscribeParam.fromJson(map['subscribeParam']);
return productListBean;
}
Map toJson() => {
"id": id,
"supplierName": supplierName,
"storeId": storeId,
"categoryId": categoryId,
"groupId": groupId,
"shortName": shortName,
"productName": productName,
"sellDesc": sellDesc,
"productCode": productCode,
"weight": weight,
"applyPrice": applyPrice,
"price": price,
"vipPrice":vipPrice,
"stock": stock,
"sellCount": sellCount,
"needLogistics": needLogistics,
"oversold": oversold,
"status": status,
"posShow": posShow,
"attrStyle": attrStyle,
"isDelete": isDelete,
"productAttrValues": productAttrValues,
"skuList": skuList,
"imgPathList": imgPathList,
"buyNum": buyNum,
"imgPath": imgPath,
"setMeal": setMeal,
"printerFlag": printerFlag,
"markProductNone": markProductNone,
"subscribeParam": subscribeParam,
};
}
/// isEnableSubscribe : true
/// dayOrDate : 3
/// startAfterDays : null
/// daysValidate : null
/// subscribeStartTime : "2023-04-20 00:00:00"
/// subscribeEndTime : "2023-04-30 00:00:00"
/// stores : ["海峡姐妹","前进麦味","百年川椒","小吃街"]
class SubscribeParam {
SubscribeParam({
bool isEnableSubscribe,
num dayOrDate,
dynamic startAfterDays,
dynamic daysValidate,
String subscribeStartTime,
String subscribeEndTime,
List<String> stores,}) {
_isEnableSubscribe = isEnableSubscribe;
_dayOrDate = dayOrDate;
_startAfterDays = startAfterDays;
_daysValidate = daysValidate;
_subscribeStartTime = subscribeStartTime;
_subscribeEndTime = subscribeEndTime;
_stores = stores;
}
SubscribeParam.fromJson(dynamic json) {
if(json == null)
return;
_isEnableSubscribe = json['isEnableSubscribe'];
_dayOrDate = json['dayOrDate'];
_startAfterDays = json['startAfterDays'];
_daysValidate = json['daysValidate'];
_subscribeStartTime = json['subscribeStartTime'];
_subscribeEndTime = json['subscribeEndTime'];
_stores = json['stores'] != null ? json['stores'].cast<String>() : [];
}
bool _isEnableSubscribe;
num _dayOrDate;
dynamic _startAfterDays;
dynamic _daysValidate;
String _subscribeStartTime;
String _subscribeEndTime;
List<String> _stores;
SubscribeParam copyWith({ bool isEnableSubscribe,
num dayOrDate,
dynamic startAfterDays,
dynamic daysValidate,
String subscribeStartTime,
String subscribeEndTime,
List<String> stores,
}) =>
SubscribeParam(
isEnableSubscribe: isEnableSubscribe ?? _isEnableSubscribe,
dayOrDate: dayOrDate ?? _dayOrDate,
startAfterDays: startAfterDays ?? _startAfterDays,
daysValidate: daysValidate ?? _daysValidate,
subscribeStartTime: subscribeStartTime ?? _subscribeStartTime,
subscribeEndTime: subscribeEndTime ?? _subscribeEndTime,
stores: stores ?? _stores,
);
bool get isEnableSubscribe => _isEnableSubscribe;
num get dayOrDate => _dayOrDate;
dynamic get startAfterDays => _startAfterDays;
dynamic get daysValidate => _daysValidate;
String get subscribeStartTime => _subscribeStartTime;
String get subscribeEndTime => _subscribeEndTime;
List<String> get stores => _stores;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['isEnableSubscribe'] = _isEnableSubscribe;
map['dayOrDate'] = _dayOrDate;
map['startAfterDays'] = _startAfterDays;
map['daysValidate'] = _daysValidate;
map['subscribeStartTime'] = _subscribeStartTime;
map['subscribeEndTime'] = _subscribeEndTime;
map['stores'] = _stores;
return map;
}
}