-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoUniversalbpWordpackageFindlistAPIRequest.go
69 lines (58 loc) · 2.29 KB
/
TaobaoUniversalbpWordpackageFindlistAPIRequest.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
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoUniversalbpWordpackageFindlistAPIRequest 词包列表查询 API请求
// taobao.universalbp.wordpackage.findlist
//
// 根据计划+单元id,查绑定的词包列表
type TaobaoUniversalbpWordpackageFindlistAPIRequest struct {
model.Params
// topServiceContext
_topServiceContext *TopServiceContext
// wordPackageQueryVO
_wordPackageQueryVO *WordPackageQueryVo
}
// NewTaobaoUniversalbpWordpackageFindlistRequest 初始化TaobaoUniversalbpWordpackageFindlistAPIRequest对象
func NewTaobaoUniversalbpWordpackageFindlistRequest() *TaobaoUniversalbpWordpackageFindlistAPIRequest {
return &TaobaoUniversalbpWordpackageFindlistAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoUniversalbpWordpackageFindlistAPIRequest) GetApiMethodName() string {
return "taobao.universalbp.wordpackage.findlist"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoUniversalbpWordpackageFindlistAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoUniversalbpWordpackageFindlistAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetTopServiceContext is TopServiceContext Setter
// topServiceContext
func (r *TaobaoUniversalbpWordpackageFindlistAPIRequest) SetTopServiceContext(_topServiceContext *TopServiceContext) error {
r._topServiceContext = _topServiceContext
r.Set("top_service_context", _topServiceContext)
return nil
}
// GetTopServiceContext TopServiceContext Getter
func (r TaobaoUniversalbpWordpackageFindlistAPIRequest) GetTopServiceContext() *TopServiceContext {
return r._topServiceContext
}
// SetWordPackageQueryVO is WordPackageQueryVO Setter
// wordPackageQueryVO
func (r *TaobaoUniversalbpWordpackageFindlistAPIRequest) SetWordPackageQueryVO(_wordPackageQueryVO *WordPackageQueryVo) error {
r._wordPackageQueryVO = _wordPackageQueryVO
r.Set("word_package_query_v_o", _wordPackageQueryVO)
return nil
}
// GetWordPackageQueryVO WordPackageQueryVO Getter
func (r TaobaoUniversalbpWordpackageFindlistAPIRequest) GetWordPackageQueryVO() *WordPackageQueryVo {
return r._wordPackageQueryVO
}