-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.go
94 lines (79 loc) · 3.08 KB
/
AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.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
package wdk
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest 删除换购活动商品 API请求
// alibaba.wdk.marketing.itempool.stair.removeitem
//
// 删除换购商品
type AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest struct {
model.Params
// 商品sku信息
_param0 *ItemPoolSku
// 活动信息
_param1 *CommonActivityParam
}
// NewAlibabaWdkMarketingItempoolStairRemoveitemRequest 初始化AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest对象
func NewAlibabaWdkMarketingItempoolStairRemoveitemRequest() *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest {
return &AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest{
Params: model.NewParams(2),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) Reset() {
r._param0 = nil
r._param1 = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetApiMethodName() string {
return "alibaba.wdk.marketing.itempool.stair.removeitem"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetParam0 is Param0 Setter
// 商品sku信息
func (r *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) SetParam0(_param0 *ItemPoolSku) error {
r._param0 = _param0
r.Set("param0", _param0)
return nil
}
// GetParam0 Param0 Getter
func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetParam0() *ItemPoolSku {
return r._param0
}
// SetParam1 is Param1 Setter
// 活动信息
func (r *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error {
r._param1 = _param1
r.Set("param1", _param1)
return nil
}
// GetParam1 Param1 Getter
func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetParam1() *CommonActivityParam {
return r._param1
}
var poolAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaWdkMarketingItempoolStairRemoveitemRequest()
},
}
// GetAlibabaWdkMarketingItempoolStairRemoveitemRequest 从 sync.Pool 获取 AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest
func GetAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest() *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest {
return poolAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.Get().(*AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest)
}
// ReleaseAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest 将 AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest 放入 sync.Pool
func ReleaseAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest(v *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) {
v.Reset()
poolAlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.Put(v)
}