-
Notifications
You must be signed in to change notification settings - Fork 9
/
WdkRexoutResourceListCheckAPIRequest.go
190 lines (163 loc) · 5.04 KB
/
WdkRexoutResourceListCheckAPIRequest.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
package util
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// WdkRexoutResourceListCheckAPIRequest ReX应用中心资源更新检测-外部 API请求
// wdk.rexout.resource.list.check
//
// ReX应用中心资源更新检测-外部
type WdkRexoutResourceListCheckAPIRequest struct {
model.Params
// 主包名
_packageName string
// 设备ID
_deviceId string
// 设备类型
_deviceType string
// 旧版本资源信息
_oldVersions string
// 所属商家结构
_orgInfo string
// 自定义参数
_attributes string
// 主包版本
_versionCode int64
// 租户ID
_tenantId int64
}
// NewWdkRexoutResourceListCheckRequest 初始化WdkRexoutResourceListCheckAPIRequest对象
func NewWdkRexoutResourceListCheckRequest() *WdkRexoutResourceListCheckAPIRequest {
return &WdkRexoutResourceListCheckAPIRequest{
Params: model.NewParams(8),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *WdkRexoutResourceListCheckAPIRequest) Reset() {
r._packageName = ""
r._deviceId = ""
r._deviceType = ""
r._oldVersions = ""
r._orgInfo = ""
r._attributes = ""
r._versionCode = 0
r._tenantId = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r WdkRexoutResourceListCheckAPIRequest) GetApiMethodName() string {
return "wdk.rexout.resource.list.check"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r WdkRexoutResourceListCheckAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r WdkRexoutResourceListCheckAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetPackageName is PackageName Setter
// 主包名
func (r *WdkRexoutResourceListCheckAPIRequest) SetPackageName(_packageName string) error {
r._packageName = _packageName
r.Set("package_name", _packageName)
return nil
}
// GetPackageName PackageName Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetPackageName() string {
return r._packageName
}
// SetDeviceId is DeviceId Setter
// 设备ID
func (r *WdkRexoutResourceListCheckAPIRequest) SetDeviceId(_deviceId string) error {
r._deviceId = _deviceId
r.Set("device_id", _deviceId)
return nil
}
// GetDeviceId DeviceId Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetDeviceId() string {
return r._deviceId
}
// SetDeviceType is DeviceType Setter
// 设备类型
func (r *WdkRexoutResourceListCheckAPIRequest) SetDeviceType(_deviceType string) error {
r._deviceType = _deviceType
r.Set("device_type", _deviceType)
return nil
}
// GetDeviceType DeviceType Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetDeviceType() string {
return r._deviceType
}
// SetOldVersions is OldVersions Setter
// 旧版本资源信息
func (r *WdkRexoutResourceListCheckAPIRequest) SetOldVersions(_oldVersions string) error {
r._oldVersions = _oldVersions
r.Set("old_versions", _oldVersions)
return nil
}
// GetOldVersions OldVersions Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetOldVersions() string {
return r._oldVersions
}
// SetOrgInfo is OrgInfo Setter
// 所属商家结构
func (r *WdkRexoutResourceListCheckAPIRequest) SetOrgInfo(_orgInfo string) error {
r._orgInfo = _orgInfo
r.Set("org_info", _orgInfo)
return nil
}
// GetOrgInfo OrgInfo Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetOrgInfo() string {
return r._orgInfo
}
// SetAttributes is Attributes Setter
// 自定义参数
func (r *WdkRexoutResourceListCheckAPIRequest) SetAttributes(_attributes string) error {
r._attributes = _attributes
r.Set("attributes", _attributes)
return nil
}
// GetAttributes Attributes Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetAttributes() string {
return r._attributes
}
// SetVersionCode is VersionCode Setter
// 主包版本
func (r *WdkRexoutResourceListCheckAPIRequest) SetVersionCode(_versionCode int64) error {
r._versionCode = _versionCode
r.Set("version_code", _versionCode)
return nil
}
// GetVersionCode VersionCode Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetVersionCode() int64 {
return r._versionCode
}
// SetTenantId is TenantId Setter
// 租户ID
func (r *WdkRexoutResourceListCheckAPIRequest) SetTenantId(_tenantId int64) error {
r._tenantId = _tenantId
r.Set("tenant_id", _tenantId)
return nil
}
// GetTenantId TenantId Getter
func (r WdkRexoutResourceListCheckAPIRequest) GetTenantId() int64 {
return r._tenantId
}
var poolWdkRexoutResourceListCheckAPIRequest = sync.Pool{
New: func() any {
return NewWdkRexoutResourceListCheckRequest()
},
}
// GetWdkRexoutResourceListCheckRequest 从 sync.Pool 获取 WdkRexoutResourceListCheckAPIRequest
func GetWdkRexoutResourceListCheckAPIRequest() *WdkRexoutResourceListCheckAPIRequest {
return poolWdkRexoutResourceListCheckAPIRequest.Get().(*WdkRexoutResourceListCheckAPIRequest)
}
// ReleaseWdkRexoutResourceListCheckAPIRequest 将 WdkRexoutResourceListCheckAPIRequest 放入 sync.Pool
func ReleaseWdkRexoutResourceListCheckAPIRequest(v *WdkRexoutResourceListCheckAPIRequest) {
v.Reset()
poolWdkRexoutResourceListCheckAPIRequest.Put(v)
}