-
Notifications
You must be signed in to change notification settings - Fork 9
/
CainiaoGlobalSolutionServiceResourceQueryAPIRequest.go
94 lines (83 loc) · 2.91 KB
/
CainiaoGlobalSolutionServiceResourceQueryAPIRequest.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
84
85
86
87
88
89
90
91
92
93
94
package cainiaohandover
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
查询解决方案服务资源列表 API请求
cainiao.global.solution.service.resource.query
返回直接解决方案的指定物流服务的可用资源列表
*/
type CainiaoGlobalSolutionServiceResourceQueryAPIRequest struct {
model.Params
// 多语言信息
_locale string
// 商家信息
_sellerParam *SellerParam
// 查询参数
_solutionServiceResParam *QuerySolutionServiceResParam
// 发件信息
_senderParam *OpenSenderParam
}
// 初始化CainiaoGlobalSolutionServiceResourceQueryAPIRequest对象
func NewCainiaoGlobalSolutionServiceResourceQueryRequest() *CainiaoGlobalSolutionServiceResourceQueryAPIRequest{
return &CainiaoGlobalSolutionServiceResourceQueryAPIRequest{
Params: model.NewParams(),
}
}
// IRequest interface 方法, 获取Api method
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiMethodName() string {
return "cainiao.global.solution.service.resource.query"
}
// IRequest interface 方法, 获取API参数
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// Locale Setter
// 多语言信息
func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetLocale(_locale string) error {
r._locale = _locale
r.Set("locale", _locale)
return nil
}
// Locale Getter
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetLocale() string {
return r._locale
}
// SellerParam Setter
// 商家信息
func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSellerParam(_sellerParam *SellerParam) error {
r._sellerParam = _sellerParam
r.Set("seller_param", _sellerParam)
return nil
}
// SellerParam Getter
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSellerParam() *SellerParam {
return r._sellerParam
}
// SolutionServiceResParam Setter
// 查询参数
func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSolutionServiceResParam(_solutionServiceResParam *QuerySolutionServiceResParam) error {
r._solutionServiceResParam = _solutionServiceResParam
r.Set("solution_service_res_param", _solutionServiceResParam)
return nil
}
// SolutionServiceResParam Getter
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSolutionServiceResParam() *QuerySolutionServiceResParam {
return r._solutionServiceResParam
}
// SenderParam Setter
// 发件信息
func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSenderParam(_senderParam *OpenSenderParam) error {
r._senderParam = _senderParam
r.Set("sender_param", _senderParam)
return nil
}
// SenderParam Getter
func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSenderParam() *OpenSenderParam {
return r._senderParam
}