-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAppstoreSubscribeGetAPIRequest.go
54 lines (45 loc) · 1.45 KB
/
TaobaoAppstoreSubscribeGetAPIRequest.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
package user
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoAppstoreSubscribeGetAPIRequest 查询appstore应用订购关系 API请求
// taobao.appstore.subscribe.get
//
// 查询appstore应用订购关系(对于新上架的多版本应用,建议使用taobao.vas.subscribe.get)
type TaobaoAppstoreSubscribeGetAPIRequest struct {
model.Params
// 用户昵称
_nick string
}
// NewTaobaoAppstoreSubscribeGetRequest 初始化TaobaoAppstoreSubscribeGetAPIRequest对象
func NewTaobaoAppstoreSubscribeGetRequest() *TaobaoAppstoreSubscribeGetAPIRequest {
return &TaobaoAppstoreSubscribeGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoAppstoreSubscribeGetAPIRequest) GetApiMethodName() string {
return "taobao.appstore.subscribe.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoAppstoreSubscribeGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoAppstoreSubscribeGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetNick is Nick Setter
// 用户昵称
func (r *TaobaoAppstoreSubscribeGetAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoAppstoreSubscribeGetAPIRequest) GetNick() string {
return r._nick
}