-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoSimbaKeywordsRecommendGetAPIRequest.go
144 lines (123 loc) · 4.04 KB
/
TaobaoSimbaKeywordsRecommendGetAPIRequest.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoSimbaKeywordsRecommendGetAPIRequest 取得一个推广组的推荐关键词列表 API请求
// taobao.simba.keywords.recommend.get
//
// 取得一个推广组的推荐关键词列表
type TaobaoSimbaKeywordsRecommendGetAPIRequest struct {
model.Params
// 主人昵称
_nick string
// 相关度
_pertinence string
// 排序方式: 搜索量 search_volume 市场平均价格 average_price 相关度 relevance 不排序 non 默认为 non
_orderBy string
// 推广组ID
_adgroupId int64
// 搜索量,设置此值后返回的就是大于此搜索量的词列表
_search int64
// 返回的每页数据量大小,最大200
_pageSize int64
// 返回的第几页数据,默认为1
_pageNo int64
}
// NewTaobaoSimbaKeywordsRecommendGetRequest 初始化TaobaoSimbaKeywordsRecommendGetAPIRequest对象
func NewTaobaoSimbaKeywordsRecommendGetRequest() *TaobaoSimbaKeywordsRecommendGetAPIRequest {
return &TaobaoSimbaKeywordsRecommendGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetApiMethodName() string {
return "taobao.simba.keywords.recommend.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetNick is Nick Setter
// 主人昵称
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetNick() string {
return r._nick
}
// SetPertinence is Pertinence Setter
// 相关度
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPertinence(_pertinence string) error {
r._pertinence = _pertinence
r.Set("pertinence", _pertinence)
return nil
}
// GetPertinence Pertinence Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPertinence() string {
return r._pertinence
}
// SetOrderBy is OrderBy Setter
// 排序方式: 搜索量 search_volume 市场平均价格 average_price 相关度 relevance 不排序 non 默认为 non
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetOrderBy(_orderBy string) error {
r._orderBy = _orderBy
r.Set("order_by", _orderBy)
return nil
}
// GetOrderBy OrderBy Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetOrderBy() string {
return r._orderBy
}
// SetAdgroupId is AdgroupId Setter
// 推广组ID
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetAdgroupId(_adgroupId int64) error {
r._adgroupId = _adgroupId
r.Set("adgroup_id", _adgroupId)
return nil
}
// GetAdgroupId AdgroupId Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetAdgroupId() int64 {
return r._adgroupId
}
// SetSearch is Search Setter
// 搜索量,设置此值后返回的就是大于此搜索量的词列表
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetSearch(_search int64) error {
r._search = _search
r.Set("search", _search)
return nil
}
// GetSearch Search Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetSearch() int64 {
return r._search
}
// SetPageSize is PageSize Setter
// 返回的每页数据量大小,最大200
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPageSize() int64 {
return r._pageSize
}
// SetPageNo is PageNo Setter
// 返回的第几页数据,默认为1
func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPageNo(_pageNo int64) error {
r._pageNo = _pageNo
r.Set("page_no", _pageNo)
return nil
}
// GetPageNo PageNo Getter
func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPageNo() int64 {
return r._pageNo
}