-
Notifications
You must be signed in to change notification settings - Fork 2
/
公共API-获取快递公司信息.go
49 lines (38 loc) · 1.09 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
package api
import "encoding/json"
type ReqGetExpressCompanyList struct {
BaseRequest
}
var _ Request = new(ReqGetExpressCompanyList)
func (r ReqGetExpressCompanyList) Method() string {
return "common.getExpressCompanyList"
}
func (r ReqGetExpressCompanyList) Params(base BaseRequest) []byte {
r.BaseRequest = base
ret, _ := json.Marshal(r)
return ret
}
type (
RespGetExpressCompanyList struct {
BaseResponse
Data RespGetExpressCompanyListData `json:"data"`
}
RespGetExpressCompanyListData struct {
ExpressCompanyInfos []struct {
ExpressCompanyId int64 `json:"expressCompanyId"`
ExpressCompanyCode string `json:"expressCompanyCode"`
ExpressCompanyName string `json:"expressCompanyName"`
Comment string `json:"comment"`
} `json:"expressCompanyInfos"`
}
)
var _ Response = new(RespGetExpressCompanyList)
func (r RespGetExpressCompanyList) ErrorCode() int64 {
return r.BaseResponse.ErrorCode
}
func (r RespGetExpressCompanyList) ErrorMsg() string {
return r.BaseResponse.ErrorMsg
}
func (r RespGetExpressCompanyList) Success() bool {
return r.BaseResponse.Success
}