-
Notifications
You must be signed in to change notification settings - Fork 12
/
AlibabaSeakingDiagnosistitleAPIRequest.go
174 lines (149 loc) · 4.64 KB
/
AlibabaSeakingDiagnosistitleAPIRequest.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
package seaking
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaSeakingDiagnosistitleAPIRequest 标题诊断 API请求
// alibaba.seaking.diagnosistitle
//
// 标题诊断
type AlibabaSeakingDiagnosistitleAPIRequest struct {
model.Params
// erp用户id
_identifier string
// 调用来源(erp名称)
_identifierType string
// 语种
_language string
// 商品所在平台(ae/icbu)
_platform string
// 标题
_title string
// 类目id,没有的时候传-1
_categoryId int64
// 扩展信息
_extra *Extra
}
// NewAlibabaSeakingDiagnosistitleRequest 初始化AlibabaSeakingDiagnosistitleAPIRequest对象
func NewAlibabaSeakingDiagnosistitleRequest() *AlibabaSeakingDiagnosistitleAPIRequest {
return &AlibabaSeakingDiagnosistitleAPIRequest{
Params: model.NewParams(7),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaSeakingDiagnosistitleAPIRequest) Reset() {
r._identifier = ""
r._identifierType = ""
r._language = ""
r._platform = ""
r._title = ""
r._categoryId = 0
r._extra = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetApiMethodName() string {
return "alibaba.seaking.diagnosistitle"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetIdentifier is Identifier Setter
// erp用户id
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifier(_identifier string) error {
r._identifier = _identifier
r.Set("identifier", _identifier)
return nil
}
// GetIdentifier Identifier Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifier() string {
return r._identifier
}
// SetIdentifierType is IdentifierType Setter
// 调用来源(erp名称)
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifierType(_identifierType string) error {
r._identifierType = _identifierType
r.Set("identifier_type", _identifierType)
return nil
}
// GetIdentifierType IdentifierType Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifierType() string {
return r._identifierType
}
// SetLanguage is Language Setter
// 语种
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetLanguage(_language string) error {
r._language = _language
r.Set("language", _language)
return nil
}
// GetLanguage Language Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetLanguage() string {
return r._language
}
// SetPlatform is Platform Setter
// 商品所在平台(ae/icbu)
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetPlatform(_platform string) error {
r._platform = _platform
r.Set("platform", _platform)
return nil
}
// GetPlatform Platform Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetPlatform() string {
return r._platform
}
// SetTitle is Title Setter
// 标题
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetTitle(_title string) error {
r._title = _title
r.Set("title", _title)
return nil
}
// GetTitle Title Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetTitle() string {
return r._title
}
// SetCategoryId is CategoryId Setter
// 类目id,没有的时候传-1
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetCategoryId(_categoryId int64) error {
r._categoryId = _categoryId
r.Set("category_id", _categoryId)
return nil
}
// GetCategoryId CategoryId Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetCategoryId() int64 {
return r._categoryId
}
// SetExtra is Extra Setter
// 扩展信息
func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetExtra(_extra *Extra) error {
r._extra = _extra
r.Set("extra", _extra)
return nil
}
// GetExtra Extra Getter
func (r AlibabaSeakingDiagnosistitleAPIRequest) GetExtra() *Extra {
return r._extra
}
var poolAlibabaSeakingDiagnosistitleAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaSeakingDiagnosistitleRequest()
},
}
// GetAlibabaSeakingDiagnosistitleRequest 从 sync.Pool 获取 AlibabaSeakingDiagnosistitleAPIRequest
func GetAlibabaSeakingDiagnosistitleAPIRequest() *AlibabaSeakingDiagnosistitleAPIRequest {
return poolAlibabaSeakingDiagnosistitleAPIRequest.Get().(*AlibabaSeakingDiagnosistitleAPIRequest)
}
// ReleaseAlibabaSeakingDiagnosistitleAPIRequest 将 AlibabaSeakingDiagnosistitleAPIRequest 放入 sync.Pool
func ReleaseAlibabaSeakingDiagnosistitleAPIRequest(v *AlibabaSeakingDiagnosistitleAPIRequest) {
v.Reset()
poolAlibabaSeakingDiagnosistitleAPIRequest.Put(v)
}