-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.go
206 lines (177 loc) · 6.06 KB
/
AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
package alsc
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest 查询分享营销客户领券信息 API请求
// alibaba.alsc.crm.marketing.share.customer.info
//
// 查询分享营销活动的客户领券信息
type AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest struct {
model.Params
// 活动id
_activityId string
// 品牌id(brandId和outerBrandId必传其一)
_brandId string
// 会员id
_customerId string
// 操作人
_operatorId string
// 操作人姓名
_operatorName string
// 外部品牌id
_outBrandId string
// 外部门店id
_outShopId string
// 请求幂等id
_requestId string
// 门店id
_shopId string
}
// NewAlibabaAlscCrmMarketingShareCustomerInfoRequest 初始化AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest对象
func NewAlibabaAlscCrmMarketingShareCustomerInfoRequest() *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest {
return &AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest{
Params: model.NewParams(9),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) Reset() {
r._activityId = ""
r._brandId = ""
r._customerId = ""
r._operatorId = ""
r._operatorName = ""
r._outBrandId = ""
r._outShopId = ""
r._requestId = ""
r._shopId = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetApiMethodName() string {
return "alibaba.alsc.crm.marketing.share.customer.info"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetActivityId is ActivityId Setter
// 活动id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetActivityId(_activityId string) error {
r._activityId = _activityId
r.Set("activity_id", _activityId)
return nil
}
// GetActivityId ActivityId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetActivityId() string {
return r._activityId
}
// SetBrandId is BrandId Setter
// 品牌id(brandId和outerBrandId必传其一)
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetBrandId(_brandId string) error {
r._brandId = _brandId
r.Set("brand_id", _brandId)
return nil
}
// GetBrandId BrandId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetBrandId() string {
return r._brandId
}
// SetCustomerId is CustomerId Setter
// 会员id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetCustomerId(_customerId string) error {
r._customerId = _customerId
r.Set("customer_id", _customerId)
return nil
}
// GetCustomerId CustomerId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetCustomerId() string {
return r._customerId
}
// SetOperatorId is OperatorId Setter
// 操作人
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOperatorId(_operatorId string) error {
r._operatorId = _operatorId
r.Set("operator_id", _operatorId)
return nil
}
// GetOperatorId OperatorId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOperatorId() string {
return r._operatorId
}
// SetOperatorName is OperatorName Setter
// 操作人姓名
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOperatorName(_operatorName string) error {
r._operatorName = _operatorName
r.Set("operator_name", _operatorName)
return nil
}
// GetOperatorName OperatorName Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOperatorName() string {
return r._operatorName
}
// SetOutBrandId is OutBrandId Setter
// 外部品牌id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOutBrandId(_outBrandId string) error {
r._outBrandId = _outBrandId
r.Set("out_brand_id", _outBrandId)
return nil
}
// GetOutBrandId OutBrandId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOutBrandId() string {
return r._outBrandId
}
// SetOutShopId is OutShopId Setter
// 外部门店id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOutShopId(_outShopId string) error {
r._outShopId = _outShopId
r.Set("out_shop_id", _outShopId)
return nil
}
// GetOutShopId OutShopId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOutShopId() string {
return r._outShopId
}
// SetRequestId is RequestId Setter
// 请求幂等id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetRequestId(_requestId string) error {
r._requestId = _requestId
r.Set("request_id", _requestId)
return nil
}
// GetRequestId RequestId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetRequestId() string {
return r._requestId
}
// SetShopId is ShopId Setter
// 门店id
func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetShopId(_shopId string) error {
r._shopId = _shopId
r.Set("shop_id", _shopId)
return nil
}
// GetShopId ShopId Getter
func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetShopId() string {
return r._shopId
}
var poolAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlscCrmMarketingShareCustomerInfoRequest()
},
}
// GetAlibabaAlscCrmMarketingShareCustomerInfoRequest 从 sync.Pool 获取 AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest
func GetAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest() *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest {
return poolAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.Get().(*AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest)
}
// ReleaseAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest 将 AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest(v *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) {
v.Reset()
poolAlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.Put(v)
}