-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlihealthPregnancyProductGetAPIRequest.go
110 lines (93 loc) · 3.33 KB
/
AlibabaAlihealthPregnancyProductGetAPIRequest.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
package alihealthcrm
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthPregnancyProductGetAPIRequest 备孕首页获取达人配置商品 API请求
// alibaba.alihealth.pregnancy.product.get
//
// 备孕首页获取达人配置商品
type AlibabaAlihealthPregnancyProductGetAPIRequest struct {
model.Params
// tab页对应id
_sceneId int64
// 起始页码,大于0
_currentPage int64
// 每页条数
_pageSize int64
}
// NewAlibabaAlihealthPregnancyProductGetRequest 初始化AlibabaAlihealthPregnancyProductGetAPIRequest对象
func NewAlibabaAlihealthPregnancyProductGetRequest() *AlibabaAlihealthPregnancyProductGetAPIRequest {
return &AlibabaAlihealthPregnancyProductGetAPIRequest{
Params: model.NewParams(3),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) Reset() {
r._sceneId = 0
r._currentPage = 0
r._pageSize = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetApiMethodName() string {
return "alibaba.alihealth.pregnancy.product.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetSceneId is SceneId Setter
// tab页对应id
func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetSceneId(_sceneId int64) error {
r._sceneId = _sceneId
r.Set("scene_id", _sceneId)
return nil
}
// GetSceneId SceneId Getter
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetSceneId() int64 {
return r._sceneId
}
// SetCurrentPage is CurrentPage Setter
// 起始页码,大于0
func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetCurrentPage(_currentPage int64) error {
r._currentPage = _currentPage
r.Set("current_page", _currentPage)
return nil
}
// GetCurrentPage CurrentPage Getter
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetCurrentPage() int64 {
return r._currentPage
}
// SetPageSize is PageSize Setter
// 每页条数
func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetPageSize() int64 {
return r._pageSize
}
var poolAlibabaAlihealthPregnancyProductGetAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlihealthPregnancyProductGetRequest()
},
}
// GetAlibabaAlihealthPregnancyProductGetRequest 从 sync.Pool 获取 AlibabaAlihealthPregnancyProductGetAPIRequest
func GetAlibabaAlihealthPregnancyProductGetAPIRequest() *AlibabaAlihealthPregnancyProductGetAPIRequest {
return poolAlibabaAlihealthPregnancyProductGetAPIRequest.Get().(*AlibabaAlihealthPregnancyProductGetAPIRequest)
}
// ReleaseAlibabaAlihealthPregnancyProductGetAPIRequest 将 AlibabaAlihealthPregnancyProductGetAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlihealthPregnancyProductGetAPIRequest(v *AlibabaAlihealthPregnancyProductGetAPIRequest) {
v.Reset()
poolAlibabaAlihealthPregnancyProductGetAPIRequest.Put(v)
}