-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoSimbaToolsItemsTopGetAPIRequest.go
84 lines (71 loc) · 2.14 KB
/
TaobaoSimbaToolsItemsTopGetAPIRequest.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
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoSimbaToolsItemsTopGetAPIRequest 取得一个关键词的推广组排名列表 API请求
// taobao.simba.tools.items.top.get
//
// 取得一个关键词的推广组排名列表
type TaobaoSimbaToolsItemsTopGetAPIRequest struct {
model.Params
// 主人昵称
_nick string
// 关键词
_keyword string
// 输入的必须是一个符合ipv4或者ipv6格式的IP地址
_ip string
}
// NewTaobaoSimbaToolsItemsTopGetRequest 初始化TaobaoSimbaToolsItemsTopGetAPIRequest对象
func NewTaobaoSimbaToolsItemsTopGetRequest() *TaobaoSimbaToolsItemsTopGetAPIRequest {
return &TaobaoSimbaToolsItemsTopGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetApiMethodName() string {
return "taobao.simba.tools.items.top.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetNick is Nick Setter
// 主人昵称
func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetNick() string {
return r._nick
}
// SetKeyword is Keyword Setter
// 关键词
func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetKeyword(_keyword string) error {
r._keyword = _keyword
r.Set("keyword", _keyword)
return nil
}
// GetKeyword Keyword Getter
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetKeyword() string {
return r._keyword
}
// SetIp is Ip Setter
// 输入的必须是一个符合ipv4或者ipv6格式的IP地址
func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetIp(_ip string) error {
r._ip = _ip
r.Set("ip", _ip)
return nil
}
// GetIp Ip Getter
func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetIp() string {
return r._ip
}