-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoTrainAgentTostationReceiveAPIResponse.go
64 lines (55 loc) · 2.32 KB
/
TaobaoTrainAgentTostationReceiveAPIResponse.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
package train
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoTrainAgentTostationReceiveAPIResponse 线下票送票至车站代理商确认用户已取票服务 API返回值
// taobao.train.agent.tostation.receive
//
// 送票至车站的订单,代理商确认用户已取票
type TaobaoTrainAgentTostationReceiveAPIResponse struct {
model.CommonResponse
TaobaoTrainAgentTostationReceiveAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoTrainAgentTostationReceiveAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoTrainAgentTostationReceiveAPIResponseModel).Reset()
}
// TaobaoTrainAgentTostationReceiveAPIResponseModel is 线下票送票至车站代理商确认用户已取票服务 成功返回结果
type TaobaoTrainAgentTostationReceiveAPIResponseModel struct {
XMLName xml.Name `xml:"train_agent_tostation_receive_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 错误码
ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"`
// 扩展参数
ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
// 错误描述
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// 是否成功
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoTrainAgentTostationReceiveAPIResponseModel) Reset() {
m.RequestId = ""
m.ErrorMsgCode = ""
m.ExtendParams = ""
m.ErrorMsg = ""
m.IsSuccess = false
}
var poolTaobaoTrainAgentTostationReceiveAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoTrainAgentTostationReceiveAPIResponse)
},
}
// GetTaobaoTrainAgentTostationReceiveAPIResponse 从 sync.Pool 获取 TaobaoTrainAgentTostationReceiveAPIResponse
func GetTaobaoTrainAgentTostationReceiveAPIResponse() *TaobaoTrainAgentTostationReceiveAPIResponse {
return poolTaobaoTrainAgentTostationReceiveAPIResponse.Get().(*TaobaoTrainAgentTostationReceiveAPIResponse)
}
// ReleaseTaobaoTrainAgentTostationReceiveAPIResponse 将 TaobaoTrainAgentTostationReceiveAPIResponse 保存到 sync.Pool
func ReleaseTaobaoTrainAgentTostationReceiveAPIResponse(v *TaobaoTrainAgentTostationReceiveAPIResponse) {
v.Reset()
poolTaobaoTrainAgentTostationReceiveAPIResponse.Put(v)
}