-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaTclsAelophyWarehouseOrderGetAPIRequest.go
78 lines (65 loc) · 2.75 KB
/
AlibabaTclsAelophyWarehouseOrderGetAPIRequest.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
package wdk
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaTclsAelophyWarehouseOrderGetAPIRequest 仓作业单获取 API请求
// alibaba.tcls.aelophy.warehouse.order.get
//
// 仓作业单获取
type AlibabaTclsAelophyWarehouseOrderGetAPIRequest struct {
model.Params
// 查询入参对象
_warehouseOrderGetRequest *WarehouseOrderGetRequest
}
// NewAlibabaTclsAelophyWarehouseOrderGetRequest 初始化AlibabaTclsAelophyWarehouseOrderGetAPIRequest对象
func NewAlibabaTclsAelophyWarehouseOrderGetRequest() *AlibabaTclsAelophyWarehouseOrderGetAPIRequest {
return &AlibabaTclsAelophyWarehouseOrderGetAPIRequest{
Params: model.NewParams(1),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaTclsAelophyWarehouseOrderGetAPIRequest) Reset() {
r._warehouseOrderGetRequest = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaTclsAelophyWarehouseOrderGetAPIRequest) GetApiMethodName() string {
return "alibaba.tcls.aelophy.warehouse.order.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaTclsAelophyWarehouseOrderGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaTclsAelophyWarehouseOrderGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetWarehouseOrderGetRequest is WarehouseOrderGetRequest Setter
// 查询入参对象
func (r *AlibabaTclsAelophyWarehouseOrderGetAPIRequest) SetWarehouseOrderGetRequest(_warehouseOrderGetRequest *WarehouseOrderGetRequest) error {
r._warehouseOrderGetRequest = _warehouseOrderGetRequest
r.Set("warehouse_order_get_request", _warehouseOrderGetRequest)
return nil
}
// GetWarehouseOrderGetRequest WarehouseOrderGetRequest Getter
func (r AlibabaTclsAelophyWarehouseOrderGetAPIRequest) GetWarehouseOrderGetRequest() *WarehouseOrderGetRequest {
return r._warehouseOrderGetRequest
}
var poolAlibabaTclsAelophyWarehouseOrderGetAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaTclsAelophyWarehouseOrderGetRequest()
},
}
// GetAlibabaTclsAelophyWarehouseOrderGetRequest 从 sync.Pool 获取 AlibabaTclsAelophyWarehouseOrderGetAPIRequest
func GetAlibabaTclsAelophyWarehouseOrderGetAPIRequest() *AlibabaTclsAelophyWarehouseOrderGetAPIRequest {
return poolAlibabaTclsAelophyWarehouseOrderGetAPIRequest.Get().(*AlibabaTclsAelophyWarehouseOrderGetAPIRequest)
}
// ReleaseAlibabaTclsAelophyWarehouseOrderGetAPIRequest 将 AlibabaTclsAelophyWarehouseOrderGetAPIRequest 放入 sync.Pool
func ReleaseAlibabaTclsAelophyWarehouseOrderGetAPIRequest(v *AlibabaTclsAelophyWarehouseOrderGetAPIRequest) {
v.Reset()
poolAlibabaTclsAelophyWarehouseOrderGetAPIRequest.Put(v)
}