-
Notifications
You must be signed in to change notification settings - Fork 4
/
订单API-订单列表.go
83 lines (72 loc) · 2.67 KB
/
订单API-订单列表.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package api
import "encoding/json"
type ReqGetOrderList struct {
BaseRequest
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
TimeType int64 `json:"timeType"`
OrderType int64 `json:"orderType"`
OrderStatus int64 `json:"orderStatus"`
PageNo int64 `json:"pageNo"`
PageSize int64 `json:"pageSize"`
}
var _ Request = new(ReqGetOrderList)
func (r ReqGetOrderList) Method() string {
return "order.getOrderList"
}
func (r ReqGetOrderList) Params(base BaseRequest) []byte {
r.BaseRequest = base
ret, _ := json.Marshal(r)
return ret
}
type (
RespGetOrderList struct {
BaseResponse
Data RespGetOrderListData `json:"data"`
}
RespGetOrderListData struct {
Total int64 `json:"total"`
PageNo int64 `json:"pageNo"`
PageSize int64 `json:"pageSize"`
MaxPageNo int64 `json:"maxPageNo"`
OrderList []struct {
OrderId string `json:"orderId"`
OrderType int64 `json:"orderType"`
OrderStatus int64 `json:"orderStatus"`
OrderAfterSalesStatus int64 `json:"orderAfterSalesStatus"`
CancelStatus int64 `json:"cancelStatus"`
CreatedTime int64 `json:"createdTime"`
PaidTime int64 `json:"paidTime"`
UpdateTime int64 `json:"updateTime"`
DeliveryTime int64 `json:"deliveryTime"`
CancelTime int64 `json:"cancelTime"`
FinishTime int64 `json:"finishTime"`
PromiseLastDeliveryTime int64 `json:"promiseLastDeliveryTime"`
PlanInfoId string `json:"planInfoId"`
PlanInfoName string `json:"planInfoName"`
ReceiverCountryId string `json:"receiverCountryId"`
ReceiverCountryName string `json:"receiverCountryName"`
ReceiverProvinceId string `json:"receiverProvinceId"`
ReceiverProvinceName string `json:"receiverProvinceName"`
ReceiverCityId string `json:"receiverCityId"`
ReceiverCityName string `json:"receiverCityName"`
ReceiverDistrictId string `json:"receiverDistrictId"`
ReceiverDistrictName string `json:"receiverDistrictName"`
CustomerRemark string `json:"customerRemark"`
SellerRemark string `json:"sellerRemark"`
SellerRemarkFlag int64 `json:"sellerRemarkFlag"`
OriginalOrderId string `json:"originalOrderId"`
Logistics string `json:"logistics"`
} `json:"orderList"`
}
)
var _ Response = new(RespGetOrderList)
func (r RespGetOrderList) ErrorCode() int64 {
return r.BaseResponse.ErrorCode
}
func (r RespGetOrderList) ErrorMsg() string {
return r.BaseResponse.ErrorMsg
}
func (r RespGetOrderList) Success() bool {
return r.BaseResponse.Success
}