-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaAlscCrmVoucherStatusChangeRequest.go
52 lines (44 loc) · 1.56 KB
/
AlibabaAlscCrmVoucherStatusChangeRequest.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
package alsc
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
优惠券状态更改 API请求
alibaba.alsc.crm.voucher.status.change
核销优惠券
*/
type AlibabaAlscCrmVoucherStatusChangeRequest struct {
model.Params
// 参数
paramVoucherStatusChangeOpenReq *VoucherStatusChangeOpenReq
}
// 初始化AlibabaAlscCrmVoucherStatusChangeRequest对象
func NewAlibabaAlscCrmVoucherStatusChangeRequest() *AlibabaAlscCrmVoucherStatusChangeRequest{
return &AlibabaAlscCrmVoucherStatusChangeRequest{
Params: model.NewParams(),
}
}
// IRequest interface 方法, 获取Api method
func (r AlibabaAlscCrmVoucherStatusChangeRequest) GetApiMethodName() string {
return "alibaba.alsc.crm.voucher.status.change"
}
// IRequest interface 方法, 获取API参数
func (r AlibabaAlscCrmVoucherStatusChangeRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// ParamVoucherStatusChangeOpenReq Setter
// 参数
func (r *AlibabaAlscCrmVoucherStatusChangeRequest) SetParamVoucherStatusChangeOpenReq(paramVoucherStatusChangeOpenReq *VoucherStatusChangeOpenReq) error {
r.paramVoucherStatusChangeOpenReq = paramVoucherStatusChangeOpenReq
r.Set("param_voucher_status_change_open_req", paramVoucherStatusChangeOpenReq)
return nil
}
// ParamVoucherStatusChangeOpenReq Getter
func (r AlibabaAlscCrmVoucherStatusChangeRequest) GetParamVoucherStatusChangeOpenReq() *VoucherStatusChangeOpenReq {
return r.paramVoucherStatusChangeOpenReq
}