|
|
@@ -1,19 +1,24 @@
|
|
|
//登录
|
|
|
-class Login{
|
|
|
+class Login {
|
|
|
bool success;
|
|
|
int code;
|
|
|
String msg;
|
|
|
LoginMap data;
|
|
|
|
|
|
- Login({this.success,this.code,this.msg,this.data});
|
|
|
+ Login({
|
|
|
+ this.success,
|
|
|
+ this.code,
|
|
|
+ this.msg,
|
|
|
+ this.data
|
|
|
+ });
|
|
|
|
|
|
- factory Login.fromJson(Map<String,dynamic> json){
|
|
|
+ factory Login.fromJson(Map < String, dynamic > json) {
|
|
|
LoginMap tempData = LoginMap.fromJson(json['data']);
|
|
|
return Login(
|
|
|
success: json['success'],
|
|
|
- code:json['code'],
|
|
|
- msg:json['msg'],
|
|
|
- data:tempData
|
|
|
+ code: json['code'],
|
|
|
+ msg: json['msg'],
|
|
|
+ data: tempData
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
@@ -55,24 +60,24 @@ class OrderListObj {
|
|
|
OrderListData data;
|
|
|
|
|
|
OrderListObj({
|
|
|
- this.success,
|
|
|
- this.code,
|
|
|
- this.msg,
|
|
|
- this.data
|
|
|
+ this.success,
|
|
|
+ this.code,
|
|
|
+ this.msg,
|
|
|
+ this.data
|
|
|
});
|
|
|
|
|
|
factory OrderListObj.fromJson(Map < String, dynamic > json) {
|
|
|
return OrderListObj(
|
|
|
success: json['success'],
|
|
|
- code:json['code'],
|
|
|
- msg:json['msg'],
|
|
|
- data:OrderListData.fromJson(json['data'])
|
|
|
+ code: json['code'],
|
|
|
+ msg: json['msg'],
|
|
|
+ data: OrderListData.fromJson(json['data'])
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
-class OrderListData{
|
|
|
+class OrderListData {
|
|
|
bool hasNextPage;
|
|
|
- List<OrderList> items;
|
|
|
+ List < OrderList > items;
|
|
|
int limit;
|
|
|
int page;
|
|
|
int totalCount;
|
|
|
@@ -87,14 +92,14 @@ class OrderListData{
|
|
|
this.totalPage
|
|
|
});
|
|
|
|
|
|
- factory OrderListData.fromJson(Map<String,dynamic>json){
|
|
|
+ factory OrderListData.fromJson(Map < String, dynamic > json) {
|
|
|
List list = json['items'] as List;
|
|
|
List < OrderList > tempOrderList = list.map((i) => OrderList.fromJson(i)).toList();
|
|
|
return OrderListData(
|
|
|
hasNextPage: json['hasNextPage'],
|
|
|
- items:tempOrderList,
|
|
|
+ items: tempOrderList,
|
|
|
limit: json['limit'],
|
|
|
- page:json['page'],
|
|
|
+ page: json['page'],
|
|
|
totalCount: json['totalCount'],
|
|
|
totalPage: json['totalPage']
|
|
|
);
|
|
|
@@ -112,70 +117,81 @@ class OrderList {
|
|
|
String sendCompanyName;
|
|
|
String sendCompanyPhone;
|
|
|
OrderList({
|
|
|
- this.orderNo,
|
|
|
- this.createTime,
|
|
|
- this.goods,
|
|
|
- this.goodsQuantity,
|
|
|
- this.receiptCompanyAddress,
|
|
|
- this.receiptCompanyName,
|
|
|
- this.receiptCompanyPhone,
|
|
|
- this.sendCompanyAddress,
|
|
|
- this.sendCompanyName,
|
|
|
- this.sendCompanyPhone
|
|
|
+ this.orderNo,
|
|
|
+ this.createTime,
|
|
|
+ this.goods,
|
|
|
+ this.goodsQuantity,
|
|
|
+ this.receiptCompanyAddress,
|
|
|
+ this.receiptCompanyName,
|
|
|
+ this.receiptCompanyPhone,
|
|
|
+ this.sendCompanyAddress,
|
|
|
+ this.sendCompanyName,
|
|
|
+ this.sendCompanyPhone
|
|
|
});
|
|
|
|
|
|
factory OrderList.fromJson(Map < String, dynamic > json) {
|
|
|
return OrderList(
|
|
|
- orderNo: json['orderNo'],
|
|
|
- createTime: json['createTime'],
|
|
|
- goods: json['goods'],
|
|
|
- goodsQuantity: json['goodsQuantity'],
|
|
|
- receiptCompanyAddress: json['receiptCompanyAddress'],
|
|
|
- receiptCompanyName:json['receiptCompanyName'],
|
|
|
- receiptCompanyPhone:json['receiptCompanyPhone'],
|
|
|
- sendCompanyAddress:json['sendCompanyAddress'],
|
|
|
- sendCompanyName:json['sendCompanyName'],
|
|
|
- sendCompanyPhone:json['sendCompanyPhone']
|
|
|
+ orderNo: json['orderNo'],
|
|
|
+ createTime: json['createTime'],
|
|
|
+ goods: json['goods'],
|
|
|
+ goodsQuantity: json['goodsQuantity'],
|
|
|
+ receiptCompanyAddress: json['receiptCompanyAddress'],
|
|
|
+ receiptCompanyName: json['receiptCompanyName'],
|
|
|
+ receiptCompanyPhone: json['receiptCompanyPhone'],
|
|
|
+ sendCompanyAddress: json['sendCompanyAddress'],
|
|
|
+ sendCompanyName: json['sendCompanyName'],
|
|
|
+ sendCompanyPhone: json['sendCompanyPhone']
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//获取站点
|
|
|
-class Station{
|
|
|
+class Station {
|
|
|
bool success;
|
|
|
int code;
|
|
|
String msg;
|
|
|
- List<StationList> data;
|
|
|
+ List < StationList > data;
|
|
|
|
|
|
- Station({this.success,this.code,this.msg,this.data});
|
|
|
+ Station({
|
|
|
+ this.success,
|
|
|
+ this.code,
|
|
|
+ this.msg,
|
|
|
+ this.data
|
|
|
+ });
|
|
|
|
|
|
- factory Station.fromJson(Map<String,dynamic> json){
|
|
|
+ factory Station.fromJson(Map < String, dynamic > json) {
|
|
|
List list = json['data'] as List;
|
|
|
print(list.toString());
|
|
|
- List<StationList> tempList = list.map((i)=>StationList.fromJson(i)).toList();
|
|
|
+ List < StationList > tempList = list.map((i) => StationList.fromJson(i)).toList();
|
|
|
return Station(
|
|
|
success: json['success'],
|
|
|
- code:json['code'],
|
|
|
- msg:json['msg'],
|
|
|
- data:tempList
|
|
|
+ code: json['code'],
|
|
|
+ msg: json['msg'],
|
|
|
+ data: tempList
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class StationList{
|
|
|
+class StationList {
|
|
|
String code;
|
|
|
int id;
|
|
|
String name;
|
|
|
int stationStatus;
|
|
|
int status;
|
|
|
|
|
|
- StationList({this.code,this.id,this.name,this.stationStatus,this.status});
|
|
|
+ StationList({
|
|
|
+ this.code,
|
|
|
+ this.id,
|
|
|
+ this.name,
|
|
|
+ this.stationStatus,
|
|
|
+ this.status
|
|
|
+ });
|
|
|
|
|
|
- factory StationList.fromJson(Map<String,dynamic> json){
|
|
|
+ factory StationList.fromJson(Map < String, dynamic > json) {
|
|
|
return StationList(
|
|
|
- code:json['code'],
|
|
|
- id:json['id'],
|
|
|
- name:json['name'],
|
|
|
+ code: json['code'],
|
|
|
+ id: json['id'],
|
|
|
+ name: json['name'],
|
|
|
stationStatus: json['stationStatus'],
|
|
|
status: json['status']
|
|
|
);
|
|
|
@@ -183,58 +199,72 @@ class StationList{
|
|
|
}
|
|
|
|
|
|
//站点线路
|
|
|
-class StationLine{
|
|
|
+class StationLine {
|
|
|
bool success;
|
|
|
int code;
|
|
|
String msg;
|
|
|
- List<LineObj> data;
|
|
|
+ List < LineObj > data;
|
|
|
|
|
|
- StationLine({this.success,this.code,this.msg,this.data});
|
|
|
+ StationLine({
|
|
|
+ this.success,
|
|
|
+ this.code,
|
|
|
+ this.msg,
|
|
|
+ this.data
|
|
|
+ });
|
|
|
|
|
|
- factory StationLine.fromJson(Map<String,dynamic> json){
|
|
|
+ factory StationLine.fromJson(Map < String, dynamic > json) {
|
|
|
var list = json['data'] as List;
|
|
|
- List<LineObj> tempList = list.map((i)=>LineObj.fromJson(i)).toList();
|
|
|
+ List < LineObj > tempList = list.map((i) => LineObj.fromJson(i)).toList();
|
|
|
|
|
|
return StationLine(
|
|
|
success: json['success'],
|
|
|
- code:json['code'],
|
|
|
- msg:json['msg'],
|
|
|
- data:tempList
|
|
|
+ code: json['code'],
|
|
|
+ msg: json['msg'],
|
|
|
+ data: tempList
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class LineObj{
|
|
|
+class LineObj {
|
|
|
String code;
|
|
|
int id;
|
|
|
String name;
|
|
|
|
|
|
- LineObj({this.code,this.name,this.id});
|
|
|
+ LineObj({
|
|
|
+ this.code,
|
|
|
+ this.name,
|
|
|
+ this.id
|
|
|
+ });
|
|
|
|
|
|
- factory LineObj.fromJson(Map<String,dynamic> json){
|
|
|
+ factory LineObj.fromJson(Map < String, dynamic > json) {
|
|
|
return LineObj(
|
|
|
- code:json['code'],
|
|
|
- id:json['id'],
|
|
|
- name:json['name']
|
|
|
+ code: json['code'],
|
|
|
+ id: json['id'],
|
|
|
+ name: json['name']
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//修改密码
|
|
|
-class UpdataPasswrod{
|
|
|
+class UpdataPasswrod {
|
|
|
bool success;
|
|
|
int code;
|
|
|
String msg;
|
|
|
String data;
|
|
|
|
|
|
- UpdataPasswrod({this.success,this.code,this.msg,this.data});
|
|
|
+ UpdataPasswrod({
|
|
|
+ this.success,
|
|
|
+ this.code,
|
|
|
+ this.msg,
|
|
|
+ this.data
|
|
|
+ });
|
|
|
|
|
|
- factory UpdataPasswrod.fromJson(Map<String,dynamic> json){
|
|
|
+ factory UpdataPasswrod.fromJson(Map < String, dynamic > json) {
|
|
|
return UpdataPasswrod(
|
|
|
success: json['success'],
|
|
|
code: json['code'],
|
|
|
- msg:json['msg'],
|
|
|
- data:json['data']
|
|
|
+ msg: json['msg'],
|
|
|
+ data: json['data']
|
|
|
);
|
|
|
}
|
|
|
}
|