-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.go
78 lines (65 loc) · 2.89 KB
/
TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.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 axintrade
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoAlitripAxinTransFundQueryByOrderAPIRequest 通过外部订单ID查询所有资金单 API请求
// taobao.alitrip.axin.trans.fund.query.by.order
//
// 阿信供销平台-通过外部订单ID查询所有资金单
type TaobaoAlitripAxinTransFundQueryByOrderAPIRequest struct {
model.Params
// 入参
_paramAxinFundListQueryDTO *AxinFundListQueryDto
}
// NewTaobaoAlitripAxinTransFundQueryByOrderRequest 初始化TaobaoAlitripAxinTransFundQueryByOrderAPIRequest对象
func NewTaobaoAlitripAxinTransFundQueryByOrderRequest() *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest {
return &TaobaoAlitripAxinTransFundQueryByOrderAPIRequest{
Params: model.NewParams(1),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) Reset() {
r._paramAxinFundListQueryDTO = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetApiMethodName() string {
return "taobao.alitrip.axin.trans.fund.query.by.order"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetParamAxinFundListQueryDTO is ParamAxinFundListQueryDTO Setter
// 入参
func (r *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) SetParamAxinFundListQueryDTO(_paramAxinFundListQueryDTO *AxinFundListQueryDto) error {
r._paramAxinFundListQueryDTO = _paramAxinFundListQueryDTO
r.Set("param_axin_fund_list_query_d_t_o", _paramAxinFundListQueryDTO)
return nil
}
// GetParamAxinFundListQueryDTO ParamAxinFundListQueryDTO Getter
func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetParamAxinFundListQueryDTO() *AxinFundListQueryDto {
return r._paramAxinFundListQueryDTO
}
var poolTaobaoAlitripAxinTransFundQueryByOrderAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoAlitripAxinTransFundQueryByOrderRequest()
},
}
// GetTaobaoAlitripAxinTransFundQueryByOrderRequest 从 sync.Pool 获取 TaobaoAlitripAxinTransFundQueryByOrderAPIRequest
func GetTaobaoAlitripAxinTransFundQueryByOrderAPIRequest() *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest {
return poolTaobaoAlitripAxinTransFundQueryByOrderAPIRequest.Get().(*TaobaoAlitripAxinTransFundQueryByOrderAPIRequest)
}
// ReleaseTaobaoAlitripAxinTransFundQueryByOrderAPIRequest 将 TaobaoAlitripAxinTransFundQueryByOrderAPIRequest 放入 sync.Pool
func ReleaseTaobaoAlitripAxinTransFundQueryByOrderAPIRequest(v *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) {
v.Reset()
poolTaobaoAlitripAxinTransFundQueryByOrderAPIRequest.Put(v)
}