|
|
|
@ -1,36 +1,50 @@
|
|
|
|
|
/// authInfo : {"token":"eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX3R5cGUiOiJQTEFURk9STV9BUFAiLCJuYW1lIjoi5pav5Z-65LuUIiwidG9rZW5fdHlwZSI6InRva2VuIiwidXNlcmlkIjoiMTQ2Mzc1MTMwMjYzNzk0NDgzMiIsImFjY291bnQiOiIxNTM5Mjk0OTA5NyIsImV4cCI6MTY0MTAwMzg4NSwibmJmIjoxNjM4NDExODg1fQ.3ioTF8ofxKeoIlT_KriPHjjpJVzB3orh6rNCYrN5auA","tokenType":"token","refreshToken":"eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaF90b2tlbiIsInVzZXJpZCI6IjE0NjM3NTEzMDI2Mzc5NDQ4MzIiLCJleHAiOjE2NDEwMDM4ODUsIm5iZiI6MTYzODQxMTg4NX0.kePPEJDAKhgGyJRzlo4OvZ_OWPYi4O6RFWsSc7cdmhU","name":"斯基仔","account":"15392949097","avatar":null,"workDescribe":null,"userId":"1463751302637944832","userType":"PLATFORM_APP","expire":"2592000","expiration":"2022-01-01 10:24:45","mobile":"15392949097"} |
|
|
|
|
/// couponList : [{"id":"1463398002331746304","createTime":"2021-11-24 14:44:07","createUser":"1333246101196636160","updateTime":"2021-11-24 14:44:07","updateUser":"1333246101196636160","storeId":"0","couponName":"满10-2","bizType":1,"allProduct":true,"productSkuId":[],"fullAmount":"10.00","discountAmount":"2.00","fullNumber":1,"discountPercent":100,"sellPrice":"0.00","sellCount":0,"bizId":"","publishStartTime":"2021-11-24 12:00:00","publishEndTime":"2021-11-30 12:00:00","useStartTime":"2021-11-24 12:00:00","useEndTime":"2021-11-30 12:00:00","promotionId":"0","dateOrDay":false,"startAfterDays":0,"daysValidate":0,"centreDisplay":true,"tenantCode":"1175","isDelete":0,"storeName":"海峡姐妹奶茶店","number":1}] |
|
|
|
|
/// authInfo : {"token":"eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX3R5cGUiOiJQTEFURk9STV9BUFAiLCJuYW1lIjoi5Zue5LmhXzg4ODg4OCIsInRva2VuX3R5cGUiOiJ0b2tlbiIsInVzZXJpZCI6IjE0NzA3MDI1OTIzMDM1NjI3NTIiLCJhY2NvdW50IjoiMTU2MTU2OTg3NDUiLCJleHAiOjE2NDIwNjk3OTksIm5iZiI6MTYzOTQ3Nzc5OX0.KHiw51SQ2RkARJhGKFTXgI7IrYXOhN-YqFZCwJ1jkEc","tokenType":"token","refreshToken":"eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaF90b2tlbiIsInVzZXJpZCI6IjE0NzA3MDI1OTIzMDM1NjI3NTIiLCJleHAiOjE2NDIwNjk3OTksIm5iZiI6MTYzOTQ3Nzc5OX0.jjI0dTviahPq6p4J_tx_Sn-Fg-q51kE3WPpqdVcEIMw","name":"回乡_888888","account":"15615698745","avatar":null,"workDescribe":null,"userId":"1470702592303562752","userType":"PLATFORM_APP","expire":"2592000","expiration":"2022-01-13 18:29:59","mobile":"15615698745"} |
|
|
|
|
/// interviewCouponList : [{"id":"1463398002331746304","createTime":"2021-11-24 14:44:07","createUser":"1333246101196636160","updateTime":"2021-11-24 14:44:07","updateUser":"1333246101196636160","storeId":"0","couponName":"满10-2","bizType":1,"allProduct":true,"productSkuId":[],"fullAmount":"10.00","discountAmount":"2.00","fullNumber":1,"discountPercent":100,"sellPrice":"0.00","sellCount":0,"bizId":"","publishStartTime":"2021-11-24 12:00:00","publishEndTime":"2021-11-30 12:00:00","useStartTime":"2021-11-24 12:00:00","useEndTime":"2021-11-30 12:00:00","promotionId":"0","dateOrDay":false,"startAfterDays":0,"daysValidate":0,"businessType":0,"centreDisplay":true,"tenantCode":"1175","isDelete":0,"storeName":"海峡姐妹奶茶店","number":1}] |
|
|
|
|
/// newUserCouponList : [{"id":"1463398002331746304","createTime":"2021-11-24 14:44:07","createUser":"1333246101196636160","updateTime":"2021-11-24 14:44:07","updateUser":"1333246101196636160","storeId":"0","couponName":"满10-2","bizType":1,"allProduct":true,"productSkuId":[],"fullAmount":"10.00","discountAmount":"2.00","fullNumber":1,"discountPercent":100,"sellPrice":"0.00","sellCount":0,"bizId":"","publishStartTime":"2021-11-24 12:00:00","publishEndTime":"2021-11-30 12:00:00","useStartTime":"2021-11-24 12:00:00","useEndTime":"2021-11-30 12:00:00","promotionId":"0","dateOrDay":false,"startAfterDays":0,"daysValidate":0,"businessType":0,"centreDisplay":true,"tenantCode":"1175","isDelete":0,"storeName":"海峡姐妹奶茶店","number":1},{"id":"1463398002331746304","createTime":"2021-11-24 14:44:07","createUser":"1333246101196636160","updateTime":"2021-11-24 14:44:07","updateUser":"1333246101196636160","storeId":"0","couponName":"满10-2","bizType":1,"allProduct":true,"productSkuId":[],"fullAmount":"10.00","discountAmount":"2.00","fullNumber":1,"discountPercent":100,"sellPrice":"0.00","sellCount":0,"bizId":"","publishStartTime":"2021-11-24 12:00:00","publishEndTime":"2021-11-30 12:00:00","useStartTime":"2021-11-24 12:00:00","useEndTime":"2021-11-30 12:00:00","promotionId":"0","dateOrDay":false,"startAfterDays":0,"daysValidate":0,"businessType":0,"centreDisplay":true,"tenantCode":"1175","isDelete":0,"storeName":"海峡姐妹奶茶店","number":1},{"id":"1463398002331746304","createTime":"2021-11-24 14:44:07","createUser":"1333246101196636160","updateTime":"2021-11-24 14:44:07","updateUser":"1333246101196636160","storeId":"0","couponName":"满10-2","bizType":1,"allProduct":true,"productSkuId":[],"fullAmount":"10.00","discountAmount":"2.00","fullNumber":1,"discountPercent":100,"sellPrice":"0.00","sellCount":0,"bizId":"","publishStartTime":"2021-11-24 12:00:00","publishEndTime":"2021-11-30 12:00:00","useStartTime":"2021-11-24 12:00:00","useEndTime":"2021-11-30 12:00:00","promotionId":"0","dateOrDay":false,"startAfterDays":0,"daysValidate":0,"businessType":0,"centreDisplay":true,"tenantCode":"1175","isDelete":0,"storeName":"海峡姐妹奶茶店","number":1}] |
|
|
|
|
|
|
|
|
|
class LoginInfo { |
|
|
|
|
LoginInfo({ |
|
|
|
|
AuthInfo authInfo, |
|
|
|
|
List<CouponList> couponList,}){ |
|
|
|
|
AuthInfo authInfo, |
|
|
|
|
List<InterviewCouponList> interviewCouponList, |
|
|
|
|
List<NewUserCouponList> newUserCouponList,}){ |
|
|
|
|
_authInfo = authInfo; |
|
|
|
|
_couponList = couponList; |
|
|
|
|
} |
|
|
|
|
_interviewCouponList = interviewCouponList; |
|
|
|
|
_newUserCouponList = newUserCouponList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LoginInfo.fromJson(dynamic json) { |
|
|
|
|
_authInfo = json['authInfo'] != null ? AuthInfo.fromJson(json['authInfo']) : null; |
|
|
|
|
if (json['couponList'] != null) { |
|
|
|
|
_couponList = []; |
|
|
|
|
json['couponList'].forEach((v) { |
|
|
|
|
_couponList.add(CouponList.fromJson(v)); |
|
|
|
|
if (json['interviewCouponList'] != null) { |
|
|
|
|
_interviewCouponList = []; |
|
|
|
|
json['interviewCouponList'].forEach((v) { |
|
|
|
|
_interviewCouponList.add(InterviewCouponList.fromJson(v)); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (json['newUserCouponList'] != null) { |
|
|
|
|
_newUserCouponList = []; |
|
|
|
|
json['newUserCouponList'].forEach((v) { |
|
|
|
|
_newUserCouponList.add(NewUserCouponList.fromJson(v)); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
AuthInfo _authInfo; |
|
|
|
|
List<CouponList> _couponList; |
|
|
|
|
List<InterviewCouponList> _interviewCouponList; |
|
|
|
|
List<NewUserCouponList> _newUserCouponList; |
|
|
|
|
|
|
|
|
|
AuthInfo get authInfo => _authInfo; |
|
|
|
|
List<CouponList> get couponList => _couponList; |
|
|
|
|
List<InterviewCouponList> get interviewCouponList => _interviewCouponList; |
|
|
|
|
List<NewUserCouponList> get newUserCouponList => _newUserCouponList; |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
|
final map = <String, dynamic>{}; |
|
|
|
|
if (_authInfo != null) { |
|
|
|
|
map['authInfo'] = _authInfo.toJson(); |
|
|
|
|
} |
|
|
|
|
if (_couponList != null) { |
|
|
|
|
map['couponList'] = _couponList.map((v) => v.toJson()).toList(); |
|
|
|
|
if (_interviewCouponList != null) { |
|
|
|
|
map['interviewCouponList'] = _interviewCouponList.map((v) => v.toJson()).toList(); |
|
|
|
|
} |
|
|
|
|
if (_newUserCouponList != null) { |
|
|
|
|
map['newUserCouponList'] = _newUserCouponList.map((v) => v.toJson()).toList(); |
|
|
|
|
} |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
@ -62,44 +76,46 @@ class LoginInfo {
|
|
|
|
|
/// dateOrDay : false |
|
|
|
|
/// startAfterDays : 0 |
|
|
|
|
/// daysValidate : 0 |
|
|
|
|
/// businessType : 0 |
|
|
|
|
/// centreDisplay : true |
|
|
|
|
/// tenantCode : "1175" |
|
|
|
|
/// isDelete : 0 |
|
|
|
|
/// storeName : "海峡姐妹奶茶店" |
|
|
|
|
/// number : 1 |
|
|
|
|
|
|
|
|
|
class CouponList { |
|
|
|
|
CouponList({ |
|
|
|
|
String id, |
|
|
|
|
String createTime, |
|
|
|
|
String createUser, |
|
|
|
|
String updateTime, |
|
|
|
|
String updateUser, |
|
|
|
|
String storeId, |
|
|
|
|
String couponName, |
|
|
|
|
int bizType, |
|
|
|
|
bool allProduct, |
|
|
|
|
// List<dynamic> productSkuId, |
|
|
|
|
String fullAmount, |
|
|
|
|
String discountAmount, |
|
|
|
|
int fullNumber, |
|
|
|
|
int discountPercent, |
|
|
|
|
String sellPrice, |
|
|
|
|
int sellCount, |
|
|
|
|
String bizId, |
|
|
|
|
String publishStartTime, |
|
|
|
|
String publishEndTime, |
|
|
|
|
String useStartTime, |
|
|
|
|
String useEndTime, |
|
|
|
|
String promotionId, |
|
|
|
|
bool dateOrDay, |
|
|
|
|
int startAfterDays, |
|
|
|
|
int daysValidate, |
|
|
|
|
bool centreDisplay, |
|
|
|
|
String tenantCode, |
|
|
|
|
int isDelete, |
|
|
|
|
String storeName, |
|
|
|
|
int number,}){ |
|
|
|
|
class NewUserCouponList { |
|
|
|
|
NewUserCouponList({ |
|
|
|
|
String id, |
|
|
|
|
String createTime, |
|
|
|
|
String createUser, |
|
|
|
|
String updateTime, |
|
|
|
|
String updateUser, |
|
|
|
|
String storeId, |
|
|
|
|
String couponName, |
|
|
|
|
int bizType, |
|
|
|
|
bool allProduct, |
|
|
|
|
List<dynamic> productSkuId, |
|
|
|
|
String fullAmount, |
|
|
|
|
String discountAmount, |
|
|
|
|
int fullNumber, |
|
|
|
|
int discountPercent, |
|
|
|
|
String sellPrice, |
|
|
|
|
int sellCount, |
|
|
|
|
String bizId, |
|
|
|
|
String publishStartTime, |
|
|
|
|
String publishEndTime, |
|
|
|
|
String useStartTime, |
|
|
|
|
String useEndTime, |
|
|
|
|
String promotionId, |
|
|
|
|
bool dateOrDay, |
|
|
|
|
int startAfterDays, |
|
|
|
|
int daysValidate, |
|
|
|
|
int businessType, |
|
|
|
|
bool centreDisplay, |
|
|
|
|
String tenantCode, |
|
|
|
|
int isDelete, |
|
|
|
|
String storeName, |
|
|
|
|
int number,}){ |
|
|
|
|
_id = id; |
|
|
|
|
_createTime = createTime; |
|
|
|
|
_createUser = createUser; |
|
|
|
@ -125,14 +141,255 @@ class CouponList {
|
|
|
|
|
_dateOrDay = dateOrDay; |
|
|
|
|
_startAfterDays = startAfterDays; |
|
|
|
|
_daysValidate = daysValidate; |
|
|
|
|
_businessType = businessType; |
|
|
|
|
_centreDisplay = centreDisplay; |
|
|
|
|
_tenantCode = tenantCode; |
|
|
|
|
_isDelete = isDelete; |
|
|
|
|
_storeName = storeName; |
|
|
|
|
_number = number; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NewUserCouponList.fromJson(dynamic json) { |
|
|
|
|
_id = json['id']; |
|
|
|
|
_createTime = json['createTime']; |
|
|
|
|
_createUser = json['createUser']; |
|
|
|
|
_updateTime = json['updateTime']; |
|
|
|
|
_updateUser = json['updateUser']; |
|
|
|
|
_storeId = json['storeId']; |
|
|
|
|
_couponName = json['couponName']; |
|
|
|
|
_bizType = json['bizType']; |
|
|
|
|
_allProduct = json['allProduct']; |
|
|
|
|
// if (json['productSkuId'] != null) { |
|
|
|
|
// _productSkuId = []; |
|
|
|
|
// json['productSkuId'].forEach((v) { |
|
|
|
|
// _productSkuId.add(dynamic.fromJson(v)); |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
_fullAmount = json['fullAmount']; |
|
|
|
|
_discountAmount = json['discountAmount']; |
|
|
|
|
_fullNumber = json['fullNumber']; |
|
|
|
|
_discountPercent = json['discountPercent']; |
|
|
|
|
_sellPrice = json['sellPrice']; |
|
|
|
|
_sellCount = json['sellCount']; |
|
|
|
|
_bizId = json['bizId']; |
|
|
|
|
_publishStartTime = json['publishStartTime']; |
|
|
|
|
_publishEndTime = json['publishEndTime']; |
|
|
|
|
_useStartTime = json['useStartTime']; |
|
|
|
|
_useEndTime = json['useEndTime']; |
|
|
|
|
_promotionId = json['promotionId']; |
|
|
|
|
_dateOrDay = json['dateOrDay']; |
|
|
|
|
_startAfterDays = json['startAfterDays']; |
|
|
|
|
_daysValidate = json['daysValidate']; |
|
|
|
|
_businessType = json['businessType']; |
|
|
|
|
_centreDisplay = json['centreDisplay']; |
|
|
|
|
_tenantCode = json['tenantCode']; |
|
|
|
|
_isDelete = json['isDelete']; |
|
|
|
|
_storeName = json['storeName']; |
|
|
|
|
_number = json['number']; |
|
|
|
|
} |
|
|
|
|
String _id; |
|
|
|
|
String _createTime; |
|
|
|
|
String _createUser; |
|
|
|
|
String _updateTime; |
|
|
|
|
String _updateUser; |
|
|
|
|
String _storeId; |
|
|
|
|
String _couponName; |
|
|
|
|
int _bizType; |
|
|
|
|
bool _allProduct; |
|
|
|
|
// List<dynamic> _productSkuId; |
|
|
|
|
String _fullAmount; |
|
|
|
|
String _discountAmount; |
|
|
|
|
int _fullNumber; |
|
|
|
|
int _discountPercent; |
|
|
|
|
String _sellPrice; |
|
|
|
|
int _sellCount; |
|
|
|
|
String _bizId; |
|
|
|
|
String _publishStartTime; |
|
|
|
|
String _publishEndTime; |
|
|
|
|
String _useStartTime; |
|
|
|
|
String _useEndTime; |
|
|
|
|
String _promotionId; |
|
|
|
|
bool _dateOrDay; |
|
|
|
|
int _startAfterDays; |
|
|
|
|
int _daysValidate; |
|
|
|
|
int _businessType; |
|
|
|
|
bool _centreDisplay; |
|
|
|
|
String _tenantCode; |
|
|
|
|
int _isDelete; |
|
|
|
|
String _storeName; |
|
|
|
|
int _number; |
|
|
|
|
|
|
|
|
|
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 couponName => _couponName; |
|
|
|
|
int get bizType => _bizType; |
|
|
|
|
bool get allProduct => _allProduct; |
|
|
|
|
// List<dynamic> get productSkuId => _productSkuId; |
|
|
|
|
String get fullAmount => _fullAmount; |
|
|
|
|
String get discountAmount => _discountAmount; |
|
|
|
|
int get fullNumber => _fullNumber; |
|
|
|
|
int get discountPercent => _discountPercent; |
|
|
|
|
String get sellPrice => _sellPrice; |
|
|
|
|
int get sellCount => _sellCount; |
|
|
|
|
String get bizId => _bizId; |
|
|
|
|
String get publishStartTime => _publishStartTime; |
|
|
|
|
String get publishEndTime => _publishEndTime; |
|
|
|
|
String get useStartTime => _useStartTime; |
|
|
|
|
String get useEndTime => _useEndTime; |
|
|
|
|
String get promotionId => _promotionId; |
|
|
|
|
bool get dateOrDay => _dateOrDay; |
|
|
|
|
int get startAfterDays => _startAfterDays; |
|
|
|
|
int get daysValidate => _daysValidate; |
|
|
|
|
int get businessType => _businessType; |
|
|
|
|
bool get centreDisplay => _centreDisplay; |
|
|
|
|
String get tenantCode => _tenantCode; |
|
|
|
|
int get isDelete => _isDelete; |
|
|
|
|
String get storeName => _storeName; |
|
|
|
|
int get number => _number; |
|
|
|
|
|
|
|
|
|
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['couponName'] = _couponName; |
|
|
|
|
map['bizType'] = _bizType; |
|
|
|
|
map['allProduct'] = _allProduct; |
|
|
|
|
// if (_productSkuId != null) { |
|
|
|
|
// map['productSkuId'] = _productSkuId.map((v) => v.toJson()).toList(); |
|
|
|
|
// } |
|
|
|
|
map['fullAmount'] = _fullAmount; |
|
|
|
|
map['discountAmount'] = _discountAmount; |
|
|
|
|
map['fullNumber'] = _fullNumber; |
|
|
|
|
map['discountPercent'] = _discountPercent; |
|
|
|
|
map['sellPrice'] = _sellPrice; |
|
|
|
|
map['sellCount'] = _sellCount; |
|
|
|
|
map['bizId'] = _bizId; |
|
|
|
|
map['publishStartTime'] = _publishStartTime; |
|
|
|
|
map['publishEndTime'] = _publishEndTime; |
|
|
|
|
map['useStartTime'] = _useStartTime; |
|
|
|
|
map['useEndTime'] = _useEndTime; |
|
|
|
|
map['promotionId'] = _promotionId; |
|
|
|
|
map['dateOrDay'] = _dateOrDay; |
|
|
|
|
map['startAfterDays'] = _startAfterDays; |
|
|
|
|
map['daysValidate'] = _daysValidate; |
|
|
|
|
map['businessType'] = _businessType; |
|
|
|
|
map['centreDisplay'] = _centreDisplay; |
|
|
|
|
map['tenantCode'] = _tenantCode; |
|
|
|
|
map['isDelete'] = _isDelete; |
|
|
|
|
map['storeName'] = _storeName; |
|
|
|
|
map['number'] = _number; |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CouponList.fromJson(dynamic json) { |
|
|
|
|
/// id : "1463398002331746304" |
|
|
|
|
/// createTime : "2021-11-24 14:44:07" |
|
|
|
|
/// createUser : "1333246101196636160" |
|
|
|
|
/// updateTime : "2021-11-24 14:44:07" |
|
|
|
|
/// updateUser : "1333246101196636160" |
|
|
|
|
/// storeId : "0" |
|
|
|
|
/// couponName : "满10-2" |
|
|
|
|
/// bizType : 1 |
|
|
|
|
/// allProduct : true |
|
|
|
|
/// productSkuId : [] |
|
|
|
|
/// fullAmount : "10.00" |
|
|
|
|
/// discountAmount : "2.00" |
|
|
|
|
/// fullNumber : 1 |
|
|
|
|
/// discountPercent : 100 |
|
|
|
|
/// sellPrice : "0.00" |
|
|
|
|
/// sellCount : 0 |
|
|
|
|
/// bizId : "" |
|
|
|
|
/// publishStartTime : "2021-11-24 12:00:00" |
|
|
|
|
/// publishEndTime : "2021-11-30 12:00:00" |
|
|
|
|
/// useStartTime : "2021-11-24 12:00:00" |
|
|
|
|
/// useEndTime : "2021-11-30 12:00:00" |
|
|
|
|
/// promotionId : "0" |
|
|
|
|
/// dateOrDay : false |
|
|
|
|
/// startAfterDays : 0 |
|
|
|
|
/// daysValidate : 0 |
|
|
|
|
/// businessType : 0 |
|
|
|
|
/// centreDisplay : true |
|
|
|
|
/// tenantCode : "1175" |
|
|
|
|
/// isDelete : 0 |
|
|
|
|
/// storeName : "海峡姐妹奶茶店" |
|
|
|
|
/// number : 1 |
|
|
|
|
|
|
|
|
|
class InterviewCouponList { |
|
|
|
|
InterviewCouponList({ |
|
|
|
|
String id, |
|
|
|
|
String createTime, |
|
|
|
|
String createUser, |
|
|
|
|
String updateTime, |
|
|
|
|
String updateUser, |
|
|
|
|
String storeId, |
|
|
|
|
String couponName, |
|
|
|
|
int bizType, |
|
|
|
|
bool allProduct, |
|
|
|
|
List<dynamic> productSkuId, |
|
|
|
|
String fullAmount, |
|
|
|
|
String discountAmount, |
|
|
|
|
int fullNumber, |
|
|
|
|
int discountPercent, |
|
|
|
|
String sellPrice, |
|
|
|
|
int sellCount, |
|
|
|
|
String bizId, |
|
|
|
|
String publishStartTime, |
|
|
|
|
String publishEndTime, |
|
|
|
|
String useStartTime, |
|
|
|
|
String useEndTime, |
|
|
|
|
String promotionId, |
|
|
|
|
bool dateOrDay, |
|
|
|
|
int startAfterDays, |
|
|
|
|
int daysValidate, |
|
|
|
|
int businessType, |
|
|
|
|
bool centreDisplay, |
|
|
|
|
String tenantCode, |
|
|
|
|
int isDelete, |
|
|
|
|
String storeName, |
|
|
|
|
int number,}){ |
|
|
|
|
_id = id; |
|
|
|
|
_createTime = createTime; |
|
|
|
|
_createUser = createUser; |
|
|
|
|
_updateTime = updateTime; |
|
|
|
|
_updateUser = updateUser; |
|
|
|
|
_storeId = storeId; |
|
|
|
|
_couponName = couponName; |
|
|
|
|
_bizType = bizType; |
|
|
|
|
_allProduct = allProduct; |
|
|
|
|
// _productSkuId = productSkuId; |
|
|
|
|
_fullAmount = fullAmount; |
|
|
|
|
_discountAmount = discountAmount; |
|
|
|
|
_fullNumber = fullNumber; |
|
|
|
|
_discountPercent = discountPercent; |
|
|
|
|
_sellPrice = sellPrice; |
|
|
|
|
_sellCount = sellCount; |
|
|
|
|
_bizId = bizId; |
|
|
|
|
_publishStartTime = publishStartTime; |
|
|
|
|
_publishEndTime = publishEndTime; |
|
|
|
|
_useStartTime = useStartTime; |
|
|
|
|
_useEndTime = useEndTime; |
|
|
|
|
_promotionId = promotionId; |
|
|
|
|
_dateOrDay = dateOrDay; |
|
|
|
|
_startAfterDays = startAfterDays; |
|
|
|
|
_daysValidate = daysValidate; |
|
|
|
|
_businessType = businessType; |
|
|
|
|
_centreDisplay = centreDisplay; |
|
|
|
|
_tenantCode = tenantCode; |
|
|
|
|
_isDelete = isDelete; |
|
|
|
|
_storeName = storeName; |
|
|
|
|
_number = number; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
InterviewCouponList.fromJson(dynamic json) { |
|
|
|
|
_id = json['id']; |
|
|
|
|
_createTime = json['createTime']; |
|
|
|
|
_createUser = json['createUser']; |
|
|
|
@ -163,6 +420,7 @@ class CouponList {
|
|
|
|
|
_dateOrDay = json['dateOrDay']; |
|
|
|
|
_startAfterDays = json['startAfterDays']; |
|
|
|
|
_daysValidate = json['daysValidate']; |
|
|
|
|
_businessType = json['businessType']; |
|
|
|
|
_centreDisplay = json['centreDisplay']; |
|
|
|
|
_tenantCode = json['tenantCode']; |
|
|
|
|
_isDelete = json['isDelete']; |
|
|
|
@ -194,6 +452,7 @@ class CouponList {
|
|
|
|
|
bool _dateOrDay; |
|
|
|
|
int _startAfterDays; |
|
|
|
|
int _daysValidate; |
|
|
|
|
int _businessType; |
|
|
|
|
bool _centreDisplay; |
|
|
|
|
String _tenantCode; |
|
|
|
|
int _isDelete; |
|
|
|
@ -225,6 +484,7 @@ class CouponList {
|
|
|
|
|
bool get dateOrDay => _dateOrDay; |
|
|
|
|
int get startAfterDays => _startAfterDays; |
|
|
|
|
int get daysValidate => _daysValidate; |
|
|
|
|
int get businessType => _businessType; |
|
|
|
|
bool get centreDisplay => _centreDisplay; |
|
|
|
|
String get tenantCode => _tenantCode; |
|
|
|
|
int get isDelete => _isDelete; |
|
|
|
@ -260,6 +520,7 @@ class CouponList {
|
|
|
|
|
map['dateOrDay'] = _dateOrDay; |
|
|
|
|
map['startAfterDays'] = _startAfterDays; |
|
|
|
|
map['daysValidate'] = _daysValidate; |
|
|
|
|
map['businessType'] = _businessType; |
|
|
|
|
map['centreDisplay'] = _centreDisplay; |
|
|
|
|
map['tenantCode'] = _tenantCode; |
|
|
|
|
map['isDelete'] = _isDelete; |
|
|
|
@ -270,33 +531,33 @@ class CouponList {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// token : "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX3R5cGUiOiJQTEFURk9STV9BUFAiLCJuYW1lIjoi5pav5Z-65LuUIiwidG9rZW5fdHlwZSI6InRva2VuIiwidXNlcmlkIjoiMTQ2Mzc1MTMwMjYzNzk0NDgzMiIsImFjY291bnQiOiIxNTM5Mjk0OTA5NyIsImV4cCI6MTY0MTAwMzg4NSwibmJmIjoxNjM4NDExODg1fQ.3ioTF8ofxKeoIlT_KriPHjjpJVzB3orh6rNCYrN5auA" |
|
|
|
|
/// token : "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX3R5cGUiOiJQTEFURk9STV9BUFAiLCJuYW1lIjoi5Zue5LmhXzg4ODg4OCIsInRva2VuX3R5cGUiOiJ0b2tlbiIsInVzZXJpZCI6IjE0NzA3MDI1OTIzMDM1NjI3NTIiLCJhY2NvdW50IjoiMTU2MTU2OTg3NDUiLCJleHAiOjE2NDIwNjk3OTksIm5iZiI6MTYzOTQ3Nzc5OX0.KHiw51SQ2RkARJhGKFTXgI7IrYXOhN-YqFZCwJ1jkEc" |
|
|
|
|
/// tokenType : "token" |
|
|
|
|
/// refreshToken : "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaF90b2tlbiIsInVzZXJpZCI6IjE0NjM3NTEzMDI2Mzc5NDQ4MzIiLCJleHAiOjE2NDEwMDM4ODUsIm5iZiI6MTYzODQxMTg4NX0.kePPEJDAKhgGyJRzlo4OvZ_OWPYi4O6RFWsSc7cdmhU" |
|
|
|
|
/// name : "斯基仔" |
|
|
|
|
/// account : "15392949097" |
|
|
|
|
/// refreshToken : "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaF90b2tlbiIsInVzZXJpZCI6IjE0NzA3MDI1OTIzMDM1NjI3NTIiLCJleHAiOjE2NDIwNjk3OTksIm5iZiI6MTYzOTQ3Nzc5OX0.jjI0dTviahPq6p4J_tx_Sn-Fg-q51kE3WPpqdVcEIMw" |
|
|
|
|
/// name : "回乡_888888" |
|
|
|
|
/// account : "15615698745" |
|
|
|
|
/// avatar : null |
|
|
|
|
/// workDescribe : null |
|
|
|
|
/// userId : "1463751302637944832" |
|
|
|
|
/// userId : "1470702592303562752" |
|
|
|
|
/// userType : "PLATFORM_APP" |
|
|
|
|
/// expire : "2592000" |
|
|
|
|
/// expiration : "2022-01-01 10:24:45" |
|
|
|
|
/// mobile : "15392949097" |
|
|
|
|
/// expiration : "2022-01-13 18:29:59" |
|
|
|
|
/// mobile : "15615698745" |
|
|
|
|
|
|
|
|
|
class AuthInfo { |
|
|
|
|
AuthInfo({ |
|
|
|
|
String token, |
|
|
|
|
String tokenType, |
|
|
|
|
String refreshToken, |
|
|
|
|
String name, |
|
|
|
|
String account, |
|
|
|
|
dynamic avatar, |
|
|
|
|
dynamic workDescribe, |
|
|
|
|
String userId, |
|
|
|
|
String userType, |
|
|
|
|
String expire, |
|
|
|
|
String expiration, |
|
|
|
|
String mobile,}){ |
|
|
|
|
String token, |
|
|
|
|
String tokenType, |
|
|
|
|
String refreshToken, |
|
|
|
|
String name, |
|
|
|
|
String account, |
|
|
|
|
dynamic avatar, |
|
|
|
|
dynamic workDescribe, |
|
|
|
|
String userId, |
|
|
|
|
String userType, |
|
|
|
|
String expire, |
|
|
|
|
String expiration, |
|
|
|
|
String mobile,}){ |
|
|
|
|
_token = token; |
|
|
|
|
_tokenType = tokenType; |
|
|
|
|
_refreshToken = refreshToken; |
|
|
|
@ -309,7 +570,7 @@ class AuthInfo {
|
|
|
|
|
_expire = expire; |
|
|
|
|
_expiration = expiration; |
|
|
|
|
_mobile = mobile; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AuthInfo.fromJson(dynamic json) { |
|
|
|
|
_token = json['token']; |
|
|
|
|