-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoXhotelPriceGetForHelloAPIResponse.go
55 lines (46 loc) · 2.09 KB
/
TaobaoXhotelPriceGetForHelloAPIResponse.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
package hotel
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoXhotelPriceGetForHelloAPIResponse 哈罗合作方获取酒店库存报价 API返回值
// taobao.xhotel.price.get.for.hello
//
// 哈罗合作项目,供哈罗合作方按需查询已开通城市下的标准酒店下指定时间段内的库存报价信息;在用户登录方面,返回结果不涉及用户个人信息,不涉及商家信息;仅根据不同用户,查询对应会员等级后,返回不同报价;
type TaobaoXhotelPriceGetForHelloAPIResponse struct {
model.CommonResponse
TaobaoXhotelPriceGetForHelloAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoXhotelPriceGetForHelloAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoXhotelPriceGetForHelloAPIResponseModel).Reset()
}
// TaobaoXhotelPriceGetForHelloAPIResponseModel is 哈罗合作方获取酒店库存报价 成功返回结果
type TaobaoXhotelPriceGetForHelloAPIResponseModel struct {
XMLName xml.Name `xml:"xhotel_price_get_for_hello_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 库价结果封装
Result *HotelPriceResultSet `json:"result,omitempty" xml:"result,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoXhotelPriceGetForHelloAPIResponseModel) Reset() {
m.RequestId = ""
m.Result = nil
}
var poolTaobaoXhotelPriceGetForHelloAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoXhotelPriceGetForHelloAPIResponse)
},
}
// GetTaobaoXhotelPriceGetForHelloAPIResponse 从 sync.Pool 获取 TaobaoXhotelPriceGetForHelloAPIResponse
func GetTaobaoXhotelPriceGetForHelloAPIResponse() *TaobaoXhotelPriceGetForHelloAPIResponse {
return poolTaobaoXhotelPriceGetForHelloAPIResponse.Get().(*TaobaoXhotelPriceGetForHelloAPIResponse)
}
// ReleaseTaobaoXhotelPriceGetForHelloAPIResponse 将 TaobaoXhotelPriceGetForHelloAPIResponse 保存到 sync.Pool
func ReleaseTaobaoXhotelPriceGetForHelloAPIResponse(v *TaobaoXhotelPriceGetForHelloAPIResponse) {
v.Reset()
poolTaobaoXhotelPriceGetForHelloAPIResponse.Put(v)
}