-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAlitripFlightchangeAddAPIResponse.go
59 lines (50 loc) · 2.13 KB
/
TaobaoAlitripFlightchangeAddAPIResponse.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
package user
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoAlitripFlightchangeAddAPIResponse 航变信息录入接口 API返回值
// taobao.alitrip.flightchange.add
//
// 代理商调用航变录入接口,
//
// 简要描述:完成航变信息的自动录入后飞猪机票平台会发生的动作是匹配所有该代理人的订单,如果接口参数指定了飞猪机票订单号,发生的动作是匹配该代理人的指定订单;
//
// 找到与航变航班相关的订单给旅客下发航变短信并出发IVR自动外呼旅客。
type TaobaoAlitripFlightchangeAddAPIResponse struct {
model.CommonResponse
TaobaoAlitripFlightchangeAddAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoAlitripFlightchangeAddAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoAlitripFlightchangeAddAPIResponseModel).Reset()
}
// TaobaoAlitripFlightchangeAddAPIResponseModel is 航变信息录入接口 成功返回结果
type TaobaoAlitripFlightchangeAddAPIResponseModel struct {
XMLName xml.Name `xml:"alitrip_flightchange_add_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// result
Result *TaobaoAlitripFlightchangeAddResultDo `json:"result,omitempty" xml:"result,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoAlitripFlightchangeAddAPIResponseModel) Reset() {
m.RequestId = ""
m.Result = nil
}
var poolTaobaoAlitripFlightchangeAddAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoAlitripFlightchangeAddAPIResponse)
},
}
// GetTaobaoAlitripFlightchangeAddAPIResponse 从 sync.Pool 获取 TaobaoAlitripFlightchangeAddAPIResponse
func GetTaobaoAlitripFlightchangeAddAPIResponse() *TaobaoAlitripFlightchangeAddAPIResponse {
return poolTaobaoAlitripFlightchangeAddAPIResponse.Get().(*TaobaoAlitripFlightchangeAddAPIResponse)
}
// ReleaseTaobaoAlitripFlightchangeAddAPIResponse 将 TaobaoAlitripFlightchangeAddAPIResponse 保存到 sync.Pool
func ReleaseTaobaoAlitripFlightchangeAddAPIResponse(v *TaobaoAlitripFlightchangeAddAPIResponse) {
v.Reset()
poolTaobaoAlitripFlightchangeAddAPIResponse.Put(v)
}