-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlscCrmCardPagetmpAPIRequest.go
81 lines (68 loc) · 2.77 KB
/
AlibabaAlscCrmCardPagetmpAPIRequest.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
package alsc
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlscCrmCardPagetmpAPIRequest 查询卡模板列表(支持数据下行) API请求
// alibaba.alsc.crm.card.pagetmp
//
// 查询卡模板列表(支持数据下行)
// 当传递了数据下行参数:
// - isDeleted,lastMaxId,gmtModified,num时,进行数据下行处理,返回结果不带分页信息
// - 否则分页查询卡模板,返回结果带有分页信息
type AlibabaAlscCrmCardPagetmpAPIRequest struct {
model.Params
// 请求结果
_paramPullCardTemplateOpenReq *PullCardTemplateOpenReq
}
// NewAlibabaAlscCrmCardPagetmpRequest 初始化AlibabaAlscCrmCardPagetmpAPIRequest对象
func NewAlibabaAlscCrmCardPagetmpRequest() *AlibabaAlscCrmCardPagetmpAPIRequest {
return &AlibabaAlscCrmCardPagetmpAPIRequest{
Params: model.NewParams(1),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlscCrmCardPagetmpAPIRequest) Reset() {
r._paramPullCardTemplateOpenReq = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetApiMethodName() string {
return "alibaba.alsc.crm.card.pagetmp"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetParamPullCardTemplateOpenReq is ParamPullCardTemplateOpenReq Setter
// 请求结果
func (r *AlibabaAlscCrmCardPagetmpAPIRequest) SetParamPullCardTemplateOpenReq(_paramPullCardTemplateOpenReq *PullCardTemplateOpenReq) error {
r._paramPullCardTemplateOpenReq = _paramPullCardTemplateOpenReq
r.Set("param_pull_card_template_open_req", _paramPullCardTemplateOpenReq)
return nil
}
// GetParamPullCardTemplateOpenReq ParamPullCardTemplateOpenReq Getter
func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetParamPullCardTemplateOpenReq() *PullCardTemplateOpenReq {
return r._paramPullCardTemplateOpenReq
}
var poolAlibabaAlscCrmCardPagetmpAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlscCrmCardPagetmpRequest()
},
}
// GetAlibabaAlscCrmCardPagetmpRequest 从 sync.Pool 获取 AlibabaAlscCrmCardPagetmpAPIRequest
func GetAlibabaAlscCrmCardPagetmpAPIRequest() *AlibabaAlscCrmCardPagetmpAPIRequest {
return poolAlibabaAlscCrmCardPagetmpAPIRequest.Get().(*AlibabaAlscCrmCardPagetmpAPIRequest)
}
// ReleaseAlibabaAlscCrmCardPagetmpAPIRequest 将 AlibabaAlscCrmCardPagetmpAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlscCrmCardPagetmpAPIRequest(v *AlibabaAlscCrmCardPagetmpAPIRequest) {
v.Reset()
poolAlibabaAlscCrmCardPagetmpAPIRequest.Put(v)
}