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.
380 lines
17 KiB
380 lines
17 KiB
1 year ago
|
/// pageNum : 1
|
||
|
/// pageSize : 10
|
||
|
/// size : 10
|
||
|
/// pages : 15
|
||
|
/// hasPreviousPage : false
|
||
|
/// hasNextPage : true
|
||
|
/// total : "141"
|
||
|
/// list : [{"id":"1726808185014059008","createTime":"2023-11-21 11:42:09","createUser":"0","updateTime":"2023-11-21 11:42:09","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1726808134187483136","orderProductId":"1726808134355255296","productId":"1645714128276291584","productSkuId":"1645714128343400448","ticketWipedTimeTemplateId":"0","amount":"0.01","name":"四神汤 ","code":"T202311211142080717340001","useStartTime":"2023-11-21 00:00:00","useEndTime":"2023-12-20 11:42:08","finishTime":null,"type":"NORMAL","source":null,"takeType":null,"style":"","state":1,"canSettlement":true,"canSubscribe":true,"isDelete":0,"tenantCode":"1195","nickName":null,"userAvatar":null,"userPhone":null},{"id":"1724374425849036800","createTime":"2023-11-14 18:31:15","createUser":"0","updateTime":"2023-11-14 18:31:15","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1724374364566061056","orderProductId":"1724374364817719296","productId":"1645714128276291584","productSkuId":"1645714128343400448","ticketWipedTimeTemplateId":"0","amount":"0.01","name":"四神汤 ","code":"T202311141831155981340002","useStartTime":"2023-11-14 00:00:00","useEndTime":"2023-12-13 18:31:15","finishTime":null,"type":"NORMAL","source":null,"takeType":null,"style":"","state":1,"canSettlement":true,"canSubscribe":true,"isDelete":0,"tenantCode":"1195","nickName":null,"userAvatar":null,"userPhone":null},{"id":"1724374425798705152","createTime":"2023-11-14 18:31:15","createUser":"0","updateTime":"2023-11-14 18:31:15","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1724374364566061056","orderProductId":"1724374364817719296","productId":"1645714128276291584","productSkuId":"1645714128343400448","ticketWipedTimeTemplateId":"0","amount":"0.01","name":"四神汤 ","code":"T202311141831153237860001","useStartTime":"2023-11-14 00:00:00","useEndTime":"2023-12-13 18:31:15","finishTime":"2023-11-15 16:25:54","type":"NORMAL","source":null,"takeType":null,"style":"","state":9,"canSettlement":true,"canSubscribe":true,"isDelete":0,"tenantCode":"1195","nickName":null,"userAvatar":null,"userPhone":null},{"id":"1724358600903622656","createTime":"2023-11-14 17:28:22","createUser":"0","updateTime":"2023-11-14 17:28:22","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1724358540404981760","orderProductId":"1724358540778274816","productId":"1645714128276291584","productSkuId":"1645714128343400448","ticketWipedTimeTemplateId":"0","amount":"0.01","name":"四神汤 ","code":"T202311141728226409980002","useStartTime":"2023-11-14 00:00:00","useEndTime":"2023-12-13 17:28:22","finishTime":null,"type":"NORMAL","source":null,"takeType":null,"style":"","state":2,"canSettlement":true,"canSubscribe":true,"isDelete":0,"tenantCode":"1195","nickName":null,"userAvatar":null,"userPhone":null},{"id":"1724358600836513792","createTime":"2023-11-14 17:28:22","createUser":"0","updateTime":"2023-11-14 17:28:22","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1724358540404981760","orderProductId":"1724358540723748864","productId":"1645981572022665216","productSkuId":"1645981572102356992","ticketWipedTimeTemplateId":null,"amount":"10.00","name":"台湾粽 ","code":"T202311141728222105430001","useStartTime":"2023-11-14 00:00:00","useEndTime":"2023-12-13 17:28:22","finishTime":null,"type":"NORMAL","source":null,"takeType":null,"style":"","state":2,"canSettlement":true,"canSubscribe":true,"isDelete":0,"tenantCode":"1195","nickName":null,"userAvatar":null,"userPhone":null},{"id":"1724349046040035328","createTime":"2023-11-14 16:50:24","createUser":"0","updateTime":"2023-11-14 16:50:24","updateUser":"0","mid":"1379254113602109440","storeId":"1645318098540036096","orderId":"1724349002641571840","orderProductId":"1724349002704486400","productId":"1645714128276291584","productSkuId":"1645714128343400448","ticketWipedTimeTemplateId":"0","amount":"0.01","name":"四神汤 ","code":"T202311141650240387860007","useStartTime":"2023-11-14
|
||
|
|
||
|
class TicketShow {
|
||
|
TicketShow({
|
||
|
num pageNum,
|
||
|
num pageSize,
|
||
|
num size,
|
||
|
num pages,
|
||
|
bool hasPreviousPage,
|
||
|
bool hasNextPage,
|
||
|
String total,
|
||
|
List<TicketShowList> list,}){
|
||
|
_pageNum = pageNum;
|
||
|
_pageSize = pageSize;
|
||
|
_size = size;
|
||
|
_pages = pages;
|
||
|
_hasPreviousPage = hasPreviousPage;
|
||
|
_hasNextPage = hasNextPage;
|
||
|
_total = total;
|
||
|
_list = list;
|
||
|
}
|
||
|
|
||
|
TicketShow.fromJson(dynamic json) {
|
||
|
_pageNum = json['pageNum'];
|
||
|
_pageSize = json['pageSize'];
|
||
|
_size = json['size'];
|
||
|
_pages = json['pages'];
|
||
|
_hasPreviousPage = json['hasPreviousPage'];
|
||
|
_hasNextPage = json['hasNextPage'];
|
||
|
_total = json['total'];
|
||
|
if (json['list'] != null) {
|
||
|
_list = [];
|
||
|
json['list'].forEach((v) {
|
||
|
_list.add(TicketShowList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
num _pageNum;
|
||
|
num _pageSize;
|
||
|
num _size;
|
||
|
num _pages;
|
||
|
bool _hasPreviousPage;
|
||
|
bool _hasNextPage;
|
||
|
String _total;
|
||
|
List<TicketShowList> _list;
|
||
|
TicketShow copyWith({ num pageNum,
|
||
|
num pageSize,
|
||
|
num size,
|
||
|
num pages,
|
||
|
bool hasPreviousPage,
|
||
|
bool hasNextPage,
|
||
|
String total,
|
||
|
List<TicketShowList> list,
|
||
|
}) => TicketShow( pageNum: pageNum ?? _pageNum,
|
||
|
pageSize: pageSize ?? _pageSize,
|
||
|
size: size ?? _size,
|
||
|
pages: pages ?? _pages,
|
||
|
hasPreviousPage: hasPreviousPage ?? _hasPreviousPage,
|
||
|
hasNextPage: hasNextPage ?? _hasNextPage,
|
||
|
total: total ?? _total,
|
||
|
list: list ?? _list,
|
||
|
);
|
||
|
num get pageNum => _pageNum;
|
||
|
num get pageSize => _pageSize;
|
||
|
num get size => _size;
|
||
|
num get pages => _pages;
|
||
|
bool get hasPreviousPage => _hasPreviousPage;
|
||
|
bool get hasNextPage => _hasNextPage;
|
||
|
String get total => _total;
|
||
|
List<TicketShowList> get list => _list;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['pageNum'] = _pageNum;
|
||
|
map['pageSize'] = _pageSize;
|
||
|
map['size'] = _size;
|
||
|
map['pages'] = _pages;
|
||
|
map['hasPreviousPage'] = _hasPreviousPage;
|
||
|
map['hasNextPage'] = _hasNextPage;
|
||
|
map['total'] = _total;
|
||
|
if (_list != null) {
|
||
|
map['list'] = _list.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// id : "1726808185014059008"
|
||
|
/// createTime : "2023-11-21 11:42:09"
|
||
|
/// createUser : "0"
|
||
|
/// updateTime : "2023-11-21 11:42:09"
|
||
|
/// updateUser : "0"
|
||
|
/// mid : "1379254113602109440"
|
||
|
/// storeId : "1645318098540036096"
|
||
|
/// orderId : "1726808134187483136"
|
||
|
/// orderProductId : "1726808134355255296"
|
||
|
/// productId : "1645714128276291584"
|
||
|
/// productSkuId : "1645714128343400448"
|
||
|
/// ticketWipedTimeTemplateId : "0"
|
||
|
/// amount : "0.01"
|
||
|
/// name : "四神汤 "
|
||
|
/// code : "T202311211142080717340001"
|
||
|
/// useStartTime : "2023-11-21 00:00:00"
|
||
|
/// useEndTime : "2023-12-20 11:42:08"
|
||
|
/// finishTime : null
|
||
|
/// type : "NORMAL"
|
||
|
/// source : null
|
||
|
/// takeType : null
|
||
|
/// style : ""
|
||
|
/// state : 1
|
||
|
/// canSettlement : true
|
||
|
/// canSubscribe : true
|
||
|
/// isDelete : 0
|
||
|
/// tenantCode : "1195"
|
||
|
/// nickName : null
|
||
|
/// userAvatar : null
|
||
|
/// userPhone : null
|
||
|
|
||
|
class TicketShowList {
|
||
|
TicketShowList({
|
||
|
String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String mid,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
String orderProductId,
|
||
|
String productId,
|
||
|
String productSkuId,
|
||
|
String ticketWipedTimeTemplateId,
|
||
|
String amount,
|
||
|
String name,
|
||
|
String code,
|
||
|
String useStartTime,
|
||
|
String useEndTime,
|
||
|
dynamic finishTime,
|
||
|
String type,
|
||
|
dynamic source,
|
||
|
dynamic takeType,
|
||
|
String style,
|
||
|
num state,
|
||
|
bool canSettlement,
|
||
|
bool canSubscribe,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
dynamic nickName,
|
||
|
dynamic userAvatar,
|
||
|
dynamic userPhone,}){
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_mid = mid;
|
||
|
_storeId = storeId;
|
||
|
_orderId = orderId;
|
||
|
_orderProductId = orderProductId;
|
||
|
_productId = productId;
|
||
|
_productSkuId = productSkuId;
|
||
|
_ticketWipedTimeTemplateId = ticketWipedTimeTemplateId;
|
||
|
_amount = amount;
|
||
|
_name = name;
|
||
|
_code = code;
|
||
|
_useStartTime = useStartTime;
|
||
|
_useEndTime = useEndTime;
|
||
|
_finishTime = finishTime;
|
||
|
_type = type;
|
||
|
_source = source;
|
||
|
_takeType = takeType;
|
||
|
_style = style;
|
||
|
_state = state;
|
||
|
_canSettlement = canSettlement;
|
||
|
_canSubscribe = canSubscribe;
|
||
|
_isDelete = isDelete;
|
||
|
_tenantCode = tenantCode;
|
||
|
_nickName = nickName;
|
||
|
_userAvatar = userAvatar;
|
||
|
_userPhone = userPhone;
|
||
|
}
|
||
|
|
||
|
TicketShowList.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_createTime = json['createTime'];
|
||
|
_createUser = json['createUser'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_mid = json['mid'];
|
||
|
_storeId = json['storeId'];
|
||
|
_orderId = json['orderId'];
|
||
|
_orderProductId = json['orderProductId'];
|
||
|
_productId = json['productId'];
|
||
|
_productSkuId = json['productSkuId'];
|
||
|
_ticketWipedTimeTemplateId = json['ticketWipedTimeTemplateId'];
|
||
|
_amount = json['amount'];
|
||
|
_name = json['name'];
|
||
|
_code = json['code'];
|
||
|
_useStartTime = json['useStartTime'];
|
||
|
_useEndTime = json['useEndTime'];
|
||
|
_finishTime = json['finishTime'];
|
||
|
_type = json['type'];
|
||
|
_source = json['source'];
|
||
|
_takeType = json['takeType'];
|
||
|
_style = json['style'];
|
||
|
_state = json['state'];
|
||
|
_canSettlement = json['canSettlement'];
|
||
|
_canSubscribe = json['canSubscribe'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
_tenantCode = json['tenantCode'];
|
||
|
_nickName = json['nickName'];
|
||
|
_userAvatar = json['userAvatar'];
|
||
|
_userPhone = json['userPhone'];
|
||
|
}
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
String _mid;
|
||
|
String _storeId;
|
||
|
String _orderId;
|
||
|
String _orderProductId;
|
||
|
String _productId;
|
||
|
String _productSkuId;
|
||
|
String _ticketWipedTimeTemplateId;
|
||
|
String _amount;
|
||
|
String _name;
|
||
|
String _code;
|
||
|
String _useStartTime;
|
||
|
String _useEndTime;
|
||
|
dynamic _finishTime;
|
||
|
String _type;
|
||
|
dynamic _source;
|
||
|
dynamic _takeType;
|
||
|
String _style;
|
||
|
num _state;
|
||
|
bool _canSettlement;
|
||
|
bool _canSubscribe;
|
||
|
num _isDelete;
|
||
|
String _tenantCode;
|
||
|
dynamic _nickName;
|
||
|
dynamic _userAvatar;
|
||
|
dynamic _userPhone;
|
||
|
TicketShowList copyWith({ String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
String mid,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
String orderProductId,
|
||
|
String productId,
|
||
|
String productSkuId,
|
||
|
String ticketWipedTimeTemplateId,
|
||
|
String amount,
|
||
|
String name,
|
||
|
String code,
|
||
|
String useStartTime,
|
||
|
String useEndTime,
|
||
|
dynamic finishTime,
|
||
|
String type,
|
||
|
dynamic source,
|
||
|
dynamic takeType,
|
||
|
String style,
|
||
|
num state,
|
||
|
bool canSettlement,
|
||
|
bool canSubscribe,
|
||
|
num isDelete,
|
||
|
String tenantCode,
|
||
|
dynamic nickName,
|
||
|
dynamic userAvatar,
|
||
|
dynamic userPhone,
|
||
|
}) => TicketShowList( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
mid: mid ?? _mid,
|
||
|
storeId: storeId ?? _storeId,
|
||
|
orderId: orderId ?? _orderId,
|
||
|
orderProductId: orderProductId ?? _orderProductId,
|
||
|
productId: productId ?? _productId,
|
||
|
productSkuId: productSkuId ?? _productSkuId,
|
||
|
ticketWipedTimeTemplateId: ticketWipedTimeTemplateId ?? _ticketWipedTimeTemplateId,
|
||
|
amount: amount ?? _amount,
|
||
|
name: name ?? _name,
|
||
|
code: code ?? _code,
|
||
|
useStartTime: useStartTime ?? _useStartTime,
|
||
|
useEndTime: useEndTime ?? _useEndTime,
|
||
|
finishTime: finishTime ?? _finishTime,
|
||
|
type: type ?? _type,
|
||
|
source: source ?? _source,
|
||
|
takeType: takeType ?? _takeType,
|
||
|
style: style ?? _style,
|
||
|
state: state ?? _state,
|
||
|
canSettlement: canSettlement ?? _canSettlement,
|
||
|
canSubscribe: canSubscribe ?? _canSubscribe,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
nickName: nickName ?? _nickName,
|
||
|
userAvatar: userAvatar ?? _userAvatar,
|
||
|
userPhone: userPhone ?? _userPhone,
|
||
|
);
|
||
|
String get id => _id;
|
||
|
String get createTime => _createTime;
|
||
|
String get createUser => _createUser;
|
||
|
String get updateTime => _updateTime;
|
||
|
String get updateUser => _updateUser;
|
||
|
String get mid => _mid;
|
||
|
String get storeId => _storeId;
|
||
|
String get orderId => _orderId;
|
||
|
String get orderProductId => _orderProductId;
|
||
|
String get productId => _productId;
|
||
|
String get productSkuId => _productSkuId;
|
||
|
String get ticketWipedTimeTemplateId => _ticketWipedTimeTemplateId;
|
||
|
String get amount => _amount;
|
||
|
String get name => _name;
|
||
|
String get code => _code;
|
||
|
String get useStartTime => _useStartTime;
|
||
|
String get useEndTime => _useEndTime;
|
||
|
dynamic get finishTime => _finishTime;
|
||
|
String get type => _type;
|
||
|
dynamic get source => _source;
|
||
|
dynamic get takeType => _takeType;
|
||
|
String get style => _style;
|
||
|
num get state => _state;
|
||
|
bool get canSettlement => _canSettlement;
|
||
|
bool get canSubscribe => _canSubscribe;
|
||
|
num get isDelete => _isDelete;
|
||
|
String get tenantCode => _tenantCode;
|
||
|
dynamic get nickName => _nickName;
|
||
|
dynamic get userAvatar => _userAvatar;
|
||
|
dynamic get userPhone => _userPhone;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['createUser'] = _createUser;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['mid'] = _mid;
|
||
|
map['storeId'] = _storeId;
|
||
|
map['orderId'] = _orderId;
|
||
|
map['orderProductId'] = _orderProductId;
|
||
|
map['productId'] = _productId;
|
||
|
map['productSkuId'] = _productSkuId;
|
||
|
map['ticketWipedTimeTemplateId'] = _ticketWipedTimeTemplateId;
|
||
|
map['amount'] = _amount;
|
||
|
map['name'] = _name;
|
||
|
map['code'] = _code;
|
||
|
map['useStartTime'] = _useStartTime;
|
||
|
map['useEndTime'] = _useEndTime;
|
||
|
map['finishTime'] = _finishTime;
|
||
|
map['type'] = _type;
|
||
|
map['source'] = _source;
|
||
|
map['takeType'] = _takeType;
|
||
|
map['style'] = _style;
|
||
|
map['state'] = _state;
|
||
|
map['canSettlement'] = _canSettlement;
|
||
|
map['canSubscribe'] = _canSubscribe;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
map['tenantCode'] = _tenantCode;
|
||
|
map['nickName'] = _nickName;
|
||
|
map['userAvatar'] = _userAvatar;
|
||
|
map['userPhone'] = _userPhone;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|