-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest.go
78 lines (65 loc) · 2.99 KB
/
TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest.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 train
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest 火车票代理商接口-查询待处理改签单列表-含鉴权校验 API请求
// taobao.train.agent.untreatedchange.query.vtwo
//
// 火车票代理商接口-查询待处理改签单列表-含鉴权校验
type TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest struct {
model.Params
// 查询待处理改签列表rq
_queryUntreatedChangeRq *QueryUntreatedChangeRq
}
// NewTaobaoTrainAgentUntreatedchangeQueryVtwoRequest 初始化TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest对象
func NewTaobaoTrainAgentUntreatedchangeQueryVtwoRequest() *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest {
return &TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest{
Params: model.NewParams(1),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) Reset() {
r._queryUntreatedChangeRq = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) GetApiMethodName() string {
return "taobao.train.agent.untreatedchange.query.vtwo"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetQueryUntreatedChangeRq is QueryUntreatedChangeRq Setter
// 查询待处理改签列表rq
func (r *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) SetQueryUntreatedChangeRq(_queryUntreatedChangeRq *QueryUntreatedChangeRq) error {
r._queryUntreatedChangeRq = _queryUntreatedChangeRq
r.Set("query_untreated_change_rq", _queryUntreatedChangeRq)
return nil
}
// GetQueryUntreatedChangeRq QueryUntreatedChangeRq Getter
func (r TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) GetQueryUntreatedChangeRq() *QueryUntreatedChangeRq {
return r._queryUntreatedChangeRq
}
var poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoTrainAgentUntreatedchangeQueryVtwoRequest()
},
}
// GetTaobaoTrainAgentUntreatedchangeQueryVtwoRequest 从 sync.Pool 获取 TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest
func GetTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest() *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest {
return poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest.Get().(*TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest)
}
// ReleaseTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest 将 TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest 放入 sync.Pool
func ReleaseTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest(v *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest) {
v.Reset()
poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIRequest.Put(v)
}