-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.go
94 lines (79 loc) · 3.19 KB
/
TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.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
package wdk
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest 获取五道口设备管理信息 API请求
// taobao.wdk.equipment.deviceadmin.deviceinfo.get
//
// 通过仓编码获取五道口设备管理信息
type TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest struct {
model.Params
// 仓编码
_warehouseCode string
// 设备类型
_deviceType int64
}
// NewTaobaoWdkEquipmentDeviceadminDeviceinfoGetRequest 初始化TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest对象
func NewTaobaoWdkEquipmentDeviceadminDeviceinfoGetRequest() *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest {
return &TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest{
Params: model.NewParams(2),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) Reset() {
r._warehouseCode = ""
r._deviceType = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetApiMethodName() string {
return "taobao.wdk.equipment.deviceadmin.deviceinfo.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetWarehouseCode is WarehouseCode Setter
// 仓编码
func (r *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) SetWarehouseCode(_warehouseCode string) error {
r._warehouseCode = _warehouseCode
r.Set("warehouse_code", _warehouseCode)
return nil
}
// GetWarehouseCode WarehouseCode Getter
func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetWarehouseCode() string {
return r._warehouseCode
}
// SetDeviceType is DeviceType Setter
// 设备类型
func (r *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) SetDeviceType(_deviceType int64) error {
r._deviceType = _deviceType
r.Set("device_type", _deviceType)
return nil
}
// GetDeviceType DeviceType Getter
func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetDeviceType() int64 {
return r._deviceType
}
var poolTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoWdkEquipmentDeviceadminDeviceinfoGetRequest()
},
}
// GetTaobaoWdkEquipmentDeviceadminDeviceinfoGetRequest 从 sync.Pool 获取 TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest
func GetTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest() *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest {
return poolTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.Get().(*TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest)
}
// ReleaseTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest 将 TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest 放入 sync.Pool
func ReleaseTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest(v *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) {
v.Reset()
poolTaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.Put(v)
}