哈哈哈
3 years ago
18 changed files with 422 additions and 188 deletions
@ -0,0 +1,20 @@ |
|||||||
|
/// desc : "快消餐饮" |
||||||
|
/// code : "FASTSTORE" |
||||||
|
|
||||||
|
class PosTypeBean { |
||||||
|
String desc; |
||||||
|
String code; |
||||||
|
|
||||||
|
static PosTypeBean fromMap(Map<String, dynamic> map) { |
||||||
|
if (map == null) return null; |
||||||
|
PosTypeBean posTypeBean = PosTypeBean(); |
||||||
|
posTypeBean.desc = map['desc']; |
||||||
|
posTypeBean.code = map['code']; |
||||||
|
return posTypeBean; |
||||||
|
} |
||||||
|
|
||||||
|
Map toJson() => { |
||||||
|
"desc": desc, |
||||||
|
"code": code, |
||||||
|
}; |
||||||
|
} |
@ -0,0 +1,148 @@ |
|||||||
|
|
||||||
|
|
||||||
|
import 'PosTypeBean.dart'; |
||||||
|
|
||||||
|
/// id : "1381798825072525312" |
||||||
|
/// createTime : "2021-04-13 10:38:07" |
||||||
|
/// createUser : "1" |
||||||
|
/// updateTime : "2021-06-12 21:20:22" |
||||||
|
/// updateUser : "1381798824988639232" |
||||||
|
/// tenantCode : "1\nI/flutter ( 6658): 180" |
||||||
|
/// useErp : false |
||||||
|
/// openStartTime : "09:30:00" |
||||||
|
/// openEndTime : "18:30:00" |
||||||
|
/// storeName : "稻田里的书店" |
||||||
|
/// nickName : "" |
||||||
|
/// logo : "https://pos.upload.gznl.top/1180/2021/07/574aaeff-df3c-451a-b34f-67f9b3552427.png" |
||||||
|
/// shipAddress : "上海市崇明区东风农场东风公路833弄1-22号C2-C3" |
||||||
|
/// remark : "" |
||||||
|
/// mobile : "13554204268" |
||||||
|
/// longitude : "121.4789730000" |
||||||
|
/// latitude : "31.7092220000" |
||||||
|
/// refundAddress : null |
||||||
|
/// refundTel : null |
||||||
|
/// refundContact : null |
||||||
|
/// isAutoSendRefundAddress : 1 |
||||||
|
/// province : "上海市" |
||||||
|
/// city : "上海市" |
||||||
|
/// district : "崇明区" |
||||||
|
/// address : "上海市崇明区稻田里的书店咖啡茶饮区东平镇东风公路833号东风农场C2" |
||||||
|
/// headName : "" |
||||||
|
/// headMobile : "18672789329" |
||||||
|
/// businessService : "WIFI,免费停车" |
||||||
|
/// businessType : "书" |
||||||
|
/// deliveryInfo : null |
||||||
|
/// miniParam : null |
||||||
|
/// is_delete : 0 |
||||||
|
/// posType : {"desc":"快消餐饮","code":"FASTSTORE"} |
||||||
|
|
||||||
|
class StoreListBean { |
||||||
|
String id; |
||||||
|
String createTime; |
||||||
|
String createUser; |
||||||
|
String updateTime; |
||||||
|
String updateUser; |
||||||
|
String tenantCode; |
||||||
|
bool useErp; |
||||||
|
String openStartTime; |
||||||
|
String openEndTime; |
||||||
|
String storeName; |
||||||
|
String nickName; |
||||||
|
String logo; |
||||||
|
String shipAddress; |
||||||
|
String remark; |
||||||
|
String mobile; |
||||||
|
String longitude; |
||||||
|
String latitude; |
||||||
|
dynamic refundAddress; |
||||||
|
dynamic refundTel; |
||||||
|
dynamic refundContact; |
||||||
|
int isAutoSendRefundAddress; |
||||||
|
String province; |
||||||
|
String city; |
||||||
|
String district; |
||||||
|
String address; |
||||||
|
String headName; |
||||||
|
String headMobile; |
||||||
|
String businessService; |
||||||
|
String businessType; |
||||||
|
dynamic deliveryInfo; |
||||||
|
dynamic miniParam; |
||||||
|
int isDelete; |
||||||
|
PosTypeBean posType; |
||||||
|
|
||||||
|
static StoreListBean fromMap(Map<String, dynamic> map) { |
||||||
|
if (map == null) return null; |
||||||
|
StoreListBean storeListBean = StoreListBean(); |
||||||
|
storeListBean.id = map['id']; |
||||||
|
storeListBean.createTime = map['createTime']; |
||||||
|
storeListBean.createUser = map['createUser']; |
||||||
|
storeListBean.updateTime = map['updateTime']; |
||||||
|
storeListBean.updateUser = map['updateUser']; |
||||||
|
storeListBean.tenantCode = map['tenantCode']; |
||||||
|
storeListBean.useErp = map['useErp']; |
||||||
|
storeListBean.openStartTime = map['openStartTime']; |
||||||
|
storeListBean.openEndTime = map['openEndTime']; |
||||||
|
storeListBean.storeName = map['storeName']; |
||||||
|
storeListBean.nickName = map['nickName']; |
||||||
|
storeListBean.logo = map['logo']; |
||||||
|
storeListBean.shipAddress = map['shipAddress']; |
||||||
|
storeListBean.remark = map['remark']; |
||||||
|
storeListBean.mobile = map['mobile']; |
||||||
|
storeListBean.longitude = map['longitude']; |
||||||
|
storeListBean.latitude = map['latitude']; |
||||||
|
storeListBean.refundAddress = map['refundAddress']; |
||||||
|
storeListBean.refundTel = map['refundTel']; |
||||||
|
storeListBean.refundContact = map['refundContact']; |
||||||
|
storeListBean.isAutoSendRefundAddress = map['isAutoSendRefundAddress']; |
||||||
|
storeListBean.province = map['province']; |
||||||
|
storeListBean.city = map['city']; |
||||||
|
storeListBean.district = map['district']; |
||||||
|
storeListBean.address = map['address']; |
||||||
|
storeListBean.headName = map['headName']; |
||||||
|
storeListBean.headMobile = map['headMobile']; |
||||||
|
storeListBean.businessService = map['businessService']; |
||||||
|
storeListBean.businessType = map['businessType']; |
||||||
|
storeListBean.deliveryInfo = map['deliveryInfo']; |
||||||
|
storeListBean.miniParam = map['miniParam']; |
||||||
|
storeListBean.isDelete = map['is_delete']; |
||||||
|
storeListBean.posType = PosTypeBean.fromMap(map['posType']); |
||||||
|
return storeListBean; |
||||||
|
} |
||||||
|
|
||||||
|
Map toJson() => { |
||||||
|
"id": id, |
||||||
|
"createTime": createTime, |
||||||
|
"createUser": createUser, |
||||||
|
"updateTime": updateTime, |
||||||
|
"updateUser": updateUser, |
||||||
|
"tenantCode": tenantCode, |
||||||
|
"useErp": useErp, |
||||||
|
"openStartTime": openStartTime, |
||||||
|
"openEndTime": openEndTime, |
||||||
|
"storeName": storeName, |
||||||
|
"nickName": nickName, |
||||||
|
"logo": logo, |
||||||
|
"shipAddress": shipAddress, |
||||||
|
"remark": remark, |
||||||
|
"mobile": mobile, |
||||||
|
"longitude": longitude, |
||||||
|
"latitude": latitude, |
||||||
|
"refundAddress": refundAddress, |
||||||
|
"refundTel": refundTel, |
||||||
|
"refundContact": refundContact, |
||||||
|
"isAutoSendRefundAddress": isAutoSendRefundAddress, |
||||||
|
"province": province, |
||||||
|
"city": city, |
||||||
|
"district": district, |
||||||
|
"address": address, |
||||||
|
"headName": headName, |
||||||
|
"headMobile": headMobile, |
||||||
|
"businessService": businessService, |
||||||
|
"businessType": businessType, |
||||||
|
"deliveryInfo": deliveryInfo, |
||||||
|
"miniParam": miniParam, |
||||||
|
"is_delete": isDelete, |
||||||
|
"posType": posType, |
||||||
|
}; |
||||||
|
} |
@ -1,183 +1,132 @@ |
|||||||
/// id : "1412664861531308032" |
import 'StoreListBean.dart'; |
||||||
/// createTime : "2021-07-07 14:48:44" |
|
||||||
/// createUser : "1405494095400402944" |
/// id : "1393457755217461248" |
||||||
/// updateTime : "2021-07-07 14:48:44" |
/// createTime : "2021-05-15 14:46:33" |
||||||
/// updateUser : "1405494095400402944" |
/// createUser : null |
||||||
/// mid : "1405494095400402944" |
/// updateTime : "2021-05-15 14:46:33" |
||||||
/// openid : "" |
/// updateUser : "1393457755217461248" |
||||||
/// nickname : "" |
/// mid : "1394132265126068224" |
||||||
/// headimg : "" |
/// openid : "o3DjK5P66kDzkeW3biAx1LQSMLn4" |
||||||
|
/// nickname : "斯基仔" |
||||||
|
/// headimg : "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erTf2Lbo2ztbicMtreEdr7xtrnvtTL5Qr31cicZVoKicdN3EEej13sRMLxLlq3qHThI4V8Pmau5Rps8A/132" |
||||||
/// balance : "0.00" |
/// balance : "0.00" |
||||||
/// realRecharge : "0.00" |
/// realRecharge : "0.00" |
||||||
/// sex : "0" |
/// sex : "0" |
||||||
/// status : true |
/// status : true |
||||||
/// onCredit : false |
/// onCredit : false |
||||||
/// loginTime : "2021-07-12 17:45:35" |
/// loginTime : "2021-05-20 13:48:03" |
||||||
/// loginNum : 33 |
/// loginNum : 9 |
||||||
/// tenantCode : "1166" |
/// tenantCode : "1180" |
||||||
/// source : 1 |
/// source : 1 |
||||||
/// expendAmount : "0.00" |
/// expendAmount : "0.00" |
||||||
/// buyTimes : 0 |
/// buyTimes : 0 |
||||||
/// lastBuyTime : null |
/// lastBuyTime : null |
||||||
/// storeName : "百年川椒火锅店(光谷店)" |
/// vip_no : null |
||||||
/// storeLogo : "https://pos.upload.gznl.top/1166/2021/07/4165050b-1b26-4303-9809-6f3f8e91de52.jpg" |
/// expireTime : null |
||||||
|
/// integral : 0 |
||||||
|
/// level : 1 |
||||||
|
/// vipRegStore : null |
||||||
|
/// tenantName : "稻田里的书店" |
||||||
|
/// tenantLogo : "" |
||||||
|
/// storeList : [{"id":"1381798825072525312","createTime":"2021-04-13 10:38:07","createUser":"1","updateTime":"2021-06-12 21:20:22","updateUser":"1381798824988639232","tenantCode":"1\nI/flutter ( 6658): 180","useErp":false,"openStartTime":"09:30:00","openEndTime":"18:30:00","storeName":"稻田里的书店","nickName":"","logo":"https://pos.upload.gznl.top/1180/2021/07/574aaeff-df3c-451a-b34f-67f9b3552427.png","shipAddress":"上海市崇明区东风农场东风公路833弄1-22号C2-C3","remark":"","mobile":"13554204268","longitude":"121.4789730000","latitude":"31.7092220000","refundAddress":null,"refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"province":"上海市","city":"上海市","district":"崇明区","address":"上海市崇明区稻田里的书店咖啡茶饮区东平镇东风公路833号东风农场C2","headName":"","headMobile":"18672789329","businessService":"WIFI,免费停车","businessType":"书","deliveryInfo":null,"miniParam":null,"is_delete":0,"posType":{"desc":"快消餐饮","code":"FASTSTORE"}}] |
||||||
|
|
||||||
class VipCard { |
class VipCard { |
||||||
String _id; |
String id; |
||||||
String _createTime; |
String createTime; |
||||||
String _createUser; |
dynamic createUser; |
||||||
String _updateTime; |
String updateTime; |
||||||
String _updateUser; |
String updateUser; |
||||||
String _mid; |
String mid; |
||||||
String _openid; |
String openid; |
||||||
String _nickname; |
String nickname; |
||||||
String _headimg; |
String headimg; |
||||||
String _balance; |
String balance; |
||||||
String _realRecharge; |
String realRecharge; |
||||||
String _sex; |
String sex; |
||||||
bool _status; |
bool status; |
||||||
bool _onCredit; |
bool onCredit; |
||||||
String _loginTime; |
String loginTime; |
||||||
int _loginNum; |
int loginNum; |
||||||
String _tenantCode; |
String tenantCode; |
||||||
int _source; |
int source; |
||||||
String _expendAmount; |
String expendAmount; |
||||||
int _buyTimes; |
int buyTimes; |
||||||
dynamic _lastBuyTime; |
dynamic lastBuyTime; |
||||||
String _storeId; |
dynamic vipNo; |
||||||
String _storeName; |
dynamic expireTime; |
||||||
String _storeLogo; |
int integral; |
||||||
|
int level; |
||||||
String get id => _id; |
dynamic vipRegStore; |
||||||
String get createTime => _createTime; |
String tenantName; |
||||||
String get createUser => _createUser; |
String tenantLogo; |
||||||
String get updateTime => _updateTime; |
List<StoreListBean> storeList; |
||||||
String get updateUser => _updateUser; |
|
||||||
String get mid => _mid; |
|
||||||
String get openid => _openid; |
|
||||||
String get nickname => _nickname; |
|
||||||
String get headimg => _headimg; |
|
||||||
String get balance => _balance; |
|
||||||
String get realRecharge => _realRecharge; |
|
||||||
String get sex => _sex; |
|
||||||
bool get status => _status; |
|
||||||
bool get onCredit => _onCredit; |
|
||||||
String get loginTime => _loginTime; |
|
||||||
int get loginNum => _loginNum; |
|
||||||
String get tenantCode => _tenantCode; |
|
||||||
int get source => _source; |
|
||||||
String get expendAmount => _expendAmount; |
|
||||||
int get buyTimes => _buyTimes; |
|
||||||
dynamic get lastBuyTime => _lastBuyTime; |
|
||||||
String get storeName => _storeName; |
|
||||||
String get storeId => _storeId; |
|
||||||
String get storeLogo => _storeLogo; |
|
||||||
|
|
||||||
VipCard({ |
|
||||||
String id, |
|
||||||
String createTime, |
|
||||||
String createUser, |
|
||||||
String updateTime, |
|
||||||
String updateUser, |
|
||||||
String mid, |
|
||||||
String openid, |
|
||||||
String nickname, |
|
||||||
String headimg, |
|
||||||
String balance, |
|
||||||
String realRecharge, |
|
||||||
String sex, |
|
||||||
bool status, |
|
||||||
bool onCredit, |
|
||||||
String loginTime, |
|
||||||
int loginNum, |
|
||||||
String tenantCode, |
|
||||||
int source, |
|
||||||
String expendAmount, |
|
||||||
int buyTimes, |
|
||||||
dynamic lastBuyTime, |
|
||||||
String storeName, |
|
||||||
String storeId, |
|
||||||
String storeLogo}){ |
|
||||||
_id = id; |
|
||||||
_createTime = createTime; |
|
||||||
_createUser = createUser; |
|
||||||
_updateTime = updateTime; |
|
||||||
_updateUser = updateUser; |
|
||||||
_mid = mid; |
|
||||||
_openid = openid; |
|
||||||
_nickname = nickname; |
|
||||||
_headimg = headimg; |
|
||||||
_balance = balance; |
|
||||||
_realRecharge = realRecharge; |
|
||||||
_sex = sex; |
|
||||||
_status = status; |
|
||||||
_onCredit = onCredit; |
|
||||||
_loginTime = loginTime; |
|
||||||
_loginNum = loginNum; |
|
||||||
_tenantCode = tenantCode; |
|
||||||
_source = source; |
|
||||||
_expendAmount = expendAmount; |
|
||||||
_buyTimes = buyTimes; |
|
||||||
_lastBuyTime = lastBuyTime; |
|
||||||
_storeId = storeId; |
|
||||||
_storeName = storeName; |
|
||||||
_storeLogo = storeLogo; |
|
||||||
} |
|
||||||
|
|
||||||
VipCard.fromJson(dynamic json) { |
|
||||||
_id = json["id"]; |
|
||||||
_createTime = json["createTime"]; |
|
||||||
_createUser = json["createUser"]; |
|
||||||
_updateTime = json["updateTime"]; |
|
||||||
_updateUser = json["updateUser"]; |
|
||||||
_mid = json["mid"]; |
|
||||||
_openid = json["openid"]; |
|
||||||
_nickname = json["nickname"]; |
|
||||||
_headimg = json["headimg"]; |
|
||||||
_balance = json["balance"]; |
|
||||||
_realRecharge = json["realRecharge"]; |
|
||||||
_sex = json["sex"]; |
|
||||||
_status = json["status"]; |
|
||||||
_onCredit = json["onCredit"]; |
|
||||||
_loginTime = json["loginTime"]; |
|
||||||
_loginNum = json["loginNum"]; |
|
||||||
_tenantCode = json["tenantCode"]; |
|
||||||
_source = json["source"]; |
|
||||||
_expendAmount = json["expendAmount"]; |
|
||||||
_buyTimes = json["buyTimes"]; |
|
||||||
_lastBuyTime = json["lastBuyTime"]; |
|
||||||
_storeId = json["storeId"]; |
|
||||||
_storeName = json["storeName"]; |
|
||||||
_storeLogo = json["storeLogo"]; |
|
||||||
} |
|
||||||
|
|
||||||
Map<String, dynamic> toJson() { |
static VipCard fromMap(Map<String, dynamic> map) { |
||||||
var map = <String, dynamic>{}; |
if (map == null) return null; |
||||||
map["id"] = _id; |
VipCard vipCardBean = VipCard(); |
||||||
map["createTime"] = _createTime; |
vipCardBean.id = map['id']; |
||||||
map["createUser"] = _createUser; |
vipCardBean.createTime = map['createTime']; |
||||||
map["updateTime"] = _updateTime; |
vipCardBean.createUser = map['createUser']; |
||||||
map["updateUser"] = _updateUser; |
vipCardBean.updateTime = map['updateTime']; |
||||||
map["mid"] = _mid; |
vipCardBean.updateUser = map['updateUser']; |
||||||
map["openid"] = _openid; |
vipCardBean.mid = map['mid']; |
||||||
map["nickname"] = _nickname; |
vipCardBean.openid = map['openid']; |
||||||
map["headimg"] = _headimg; |
vipCardBean.nickname = map['nickname']; |
||||||
map["balance"] = _balance; |
vipCardBean.headimg = map['headimg']; |
||||||
map["realRecharge"] = _realRecharge; |
vipCardBean.balance = map['balance']; |
||||||
map["sex"] = _sex; |
vipCardBean.realRecharge = map['realRecharge']; |
||||||
map["status"] = _status; |
vipCardBean.sex = map['sex']; |
||||||
map["onCredit"] = _onCredit; |
vipCardBean.status = map['status']; |
||||||
map["loginTime"] = _loginTime; |
vipCardBean.onCredit = map['onCredit']; |
||||||
map["loginNum"] = _loginNum; |
vipCardBean.loginTime = map['loginTime']; |
||||||
map["tenantCode"] = _tenantCode; |
vipCardBean.loginNum = map['loginNum']; |
||||||
map["source"] = _source; |
vipCardBean.tenantCode = map['tenantCode']; |
||||||
map["expendAmount"] = _expendAmount; |
vipCardBean.source = map['source']; |
||||||
map["buyTimes"] = _buyTimes; |
vipCardBean.expendAmount = map['expendAmount']; |
||||||
map["lastBuyTime"] = _lastBuyTime; |
vipCardBean.buyTimes = map['buyTimes']; |
||||||
map["storeId"] = _storeId; |
vipCardBean.lastBuyTime = map['lastBuyTime']; |
||||||
map["storeName"] = _storeName; |
vipCardBean.vipNo = map['vip_no']; |
||||||
map["storeLogo"] = _storeLogo; |
vipCardBean.expireTime = map['expireTime']; |
||||||
return map; |
vipCardBean.integral = map['integral']; |
||||||
|
vipCardBean.level = map['level']; |
||||||
|
vipCardBean.vipRegStore = map['vipRegStore']; |
||||||
|
vipCardBean.tenantName = map['tenantName']; |
||||||
|
vipCardBean.tenantLogo = map['tenantLogo']; |
||||||
|
vipCardBean.storeList = List()..addAll( |
||||||
|
(map['storeList'] as List ?? []).map((o) => StoreListBean.fromMap(o)) |
||||||
|
); |
||||||
|
return vipCardBean; |
||||||
} |
} |
||||||
|
|
||||||
|
Map toJson() => { |
||||||
|
"id": id, |
||||||
|
"createTime": createTime, |
||||||
|
"createUser": createUser, |
||||||
|
"updateTime": updateTime, |
||||||
|
"updateUser": updateUser, |
||||||
|
"mid": mid, |
||||||
|
"openid": openid, |
||||||
|
"nickname": nickname, |
||||||
|
"headimg": headimg, |
||||||
|
"balance": balance, |
||||||
|
"realRecharge": realRecharge, |
||||||
|
"sex": sex, |
||||||
|
"status": status, |
||||||
|
"onCredit": onCredit, |
||||||
|
"loginTime": loginTime, |
||||||
|
"loginNum": loginNum, |
||||||
|
"tenantCode": tenantCode, |
||||||
|
"source": source, |
||||||
|
"expendAmount": expendAmount, |
||||||
|
"buyTimes": buyTimes, |
||||||
|
"lastBuyTime": lastBuyTime, |
||||||
|
"vip_no": vipNo, |
||||||
|
"expireTime": expireTime, |
||||||
|
"integral": integral, |
||||||
|
"level": level, |
||||||
|
"vipRegStore": vipRegStore, |
||||||
|
"tenantName": tenantName, |
||||||
|
"tenantLogo": tenantLogo, |
||||||
|
"storeList": storeList, |
||||||
|
}; |
||||||
} |
} |
Loading…
Reference in new issue