-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoSubwayCreativeVideoUnbindAPIRequest.go
84 lines (71 loc) · 2.17 KB
/
TaobaoSubwayCreativeVideoUnbindAPIRequest.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"
)
// TaobaoSubwayCreativeVideoUnbindAPIRequest 创意与视频解绑接口 API请求
// taobao.subway.creative.video.unbind
//
// 将创意与视频解绑
type TaobaoSubwayCreativeVideoUnbindAPIRequest struct {
model.Params
// 淘宝账号昵称
_nick string
// 视频ID
_videoId int64
// 创意ID
_creativeId int64
}
// NewTaobaoSubwayCreativeVideoUnbindRequest 初始化TaobaoSubwayCreativeVideoUnbindAPIRequest对象
func NewTaobaoSubwayCreativeVideoUnbindRequest() *TaobaoSubwayCreativeVideoUnbindAPIRequest {
return &TaobaoSubwayCreativeVideoUnbindAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetApiMethodName() string {
return "taobao.subway.creative.video.unbind"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetNick is Nick Setter
// 淘宝账号昵称
func (r *TaobaoSubwayCreativeVideoUnbindAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetNick() string {
return r._nick
}
// SetVideoId is VideoId Setter
// 视频ID
func (r *TaobaoSubwayCreativeVideoUnbindAPIRequest) SetVideoId(_videoId int64) error {
r._videoId = _videoId
r.Set("video_id", _videoId)
return nil
}
// GetVideoId VideoId Getter
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetVideoId() int64 {
return r._videoId
}
// SetCreativeId is CreativeId Setter
// 创意ID
func (r *TaobaoSubwayCreativeVideoUnbindAPIRequest) SetCreativeId(_creativeId int64) error {
r._creativeId = _creativeId
r.Set("creative_id", _creativeId)
return nil
}
// GetCreativeId CreativeId Getter
func (r TaobaoSubwayCreativeVideoUnbindAPIRequest) GetCreativeId() int64 {
return r._creativeId
}