-
Notifications
You must be signed in to change notification settings - Fork 11
/
TaobaoTvpayPromotionInfoGetAPIRequest.go
129 lines (110 loc) · 3.12 KB
/
TaobaoTvpayPromotionInfoGetAPIRequest.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
package tvpay
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoTvpayPromotionInfoGetAPIRequest tv支付查询消费抽奖配置 API请求
// taobao.tvpay.promotion.info.get
//
// 查询消费抽奖配置
type TaobaoTvpayPromotionInfoGetAPIRequest struct {
model.Params
// 设备id
_deviceId string
// 来源
_from string
// 淘系订单号
_extOrderId string
// 标题
_subject string
// 商品id
_subjectId string
// 是否淘系
_isTao bool
}
// NewTaobaoTvpayPromotionInfoGetRequest 初始化TaobaoTvpayPromotionInfoGetAPIRequest对象
func NewTaobaoTvpayPromotionInfoGetRequest() *TaobaoTvpayPromotionInfoGetAPIRequest {
return &TaobaoTvpayPromotionInfoGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetApiMethodName() string {
return "taobao.tvpay.promotion.info.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetDeviceId is DeviceId Setter
// 设备id
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetDeviceId(_deviceId string) error {
r._deviceId = _deviceId
r.Set("device_id", _deviceId)
return nil
}
// GetDeviceId DeviceId Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetDeviceId() string {
return r._deviceId
}
// SetFrom is From Setter
// 来源
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetFrom(_from string) error {
r._from = _from
r.Set("from", _from)
return nil
}
// GetFrom From Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetFrom() string {
return r._from
}
// SetExtOrderId is ExtOrderId Setter
// 淘系订单号
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetExtOrderId(_extOrderId string) error {
r._extOrderId = _extOrderId
r.Set("ext_order_id", _extOrderId)
return nil
}
// GetExtOrderId ExtOrderId Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetExtOrderId() string {
return r._extOrderId
}
// SetSubject is Subject Setter
// 标题
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubject(_subject string) error {
r._subject = _subject
r.Set("subject", _subject)
return nil
}
// GetSubject Subject Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetSubject() string {
return r._subject
}
// SetSubjectId is SubjectId Setter
// 商品id
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubjectId(_subjectId string) error {
r._subjectId = _subjectId
r.Set("subject_id", _subjectId)
return nil
}
// GetSubjectId SubjectId Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetSubjectId() string {
return r._subjectId
}
// SetIsTao is IsTao Setter
// 是否淘系
func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetIsTao(_isTao bool) error {
r._isTao = _isTao
r.Set("is_tao", _isTao)
return nil
}
// GetIsTao IsTao Getter
func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetIsTao() bool {
return r._isTao
}