-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse.go
58 lines (49 loc) · 2.45 KB
/
TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse.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
package train
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse 火车票代理商接口-查询待处理改签单列表-含鉴权校验 API返回值
// taobao.train.agent.untreatedchange.query.vtwo
//
// 火车票代理商接口-查询待处理改签单列表-含鉴权校验
type TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse struct {
model.CommonResponse
TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponseModel).Reset()
}
// TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponseModel is 火车票代理商接口-查询待处理改签单列表-含鉴权校验 成功返回结果
type TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponseModel struct {
XMLName xml.Name `xml:"train_agent_untreatedchange_query_vtwo_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 待处理改签申请单列表
UntreatedChangeApplyIds string `json:"untreated_change_apply_ids,omitempty" xml:"untreated_change_apply_ids,omitempty"`
// 待处理改签单数量
UntreatedChangeOrderNum int64 `json:"untreated_change_order_num,omitempty" xml:"untreated_change_order_num,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponseModel) Reset() {
m.RequestId = ""
m.UntreatedChangeApplyIds = ""
m.UntreatedChangeOrderNum = 0
}
var poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse)
},
}
// GetTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse 从 sync.Pool 获取 TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse
func GetTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse() *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse {
return poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse.Get().(*TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse)
}
// ReleaseTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse 将 TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse 保存到 sync.Pool
func ReleaseTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse(v *TaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse) {
v.Reset()
poolTaobaoTrainAgentUntreatedchangeQueryVtwoAPIResponse.Put(v)
}