-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoXhotelInfoListGetForHelloResultSet.go
67 lines (62 loc) · 2.52 KB
/
TaobaoXhotelInfoListGetForHelloResultSet.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
package hotel
import (
"sync"
)
// TaobaoXhotelInfoListGetForHelloResultSet 结构体
type TaobaoXhotelInfoListGetForHelloResultSet struct {
// 每个标准酒店及房型信息集合
Results []SHotelVo `json:"results,omitempty" xml:"results>s_hotel_vo,omitempty"`
// 渠道id
ChannelId string `json:"channel_id,omitempty" xml:"channel_id,omitempty"`
// errorCode,error=true时有值
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 错误信息,error=true时有值
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// list页h5链接
H5ListUrl string `json:"h5_list_url,omitempty" xml:"h5_list_url,omitempty"`
// list页pc链接
HotelListUrl string `json:"hotel_list_url,omitempty" xml:"hotel_list_url,omitempty"`
// 请求id,用于链路追踪
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 成功标志
SuccessFlag int64 `json:"success_flag,omitempty" xml:"success_flag,omitempty"`
// 总数据量
TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
// 数据版本
Version int64 `json:"version,omitempty" xml:"version,omitempty"`
// 分页查询结果中最后一个id,配合hasNext进行分页查询的性能优化
LastId int64 `json:"last_id,omitempty" xml:"last_id,omitempty"`
// 本次请求是否错误
Error bool `json:"error,omitempty" xml:"error,omitempty"`
// 当前数据集合是否还有下一页
HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
// 是否成功标记
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolTaobaoXhotelInfoListGetForHelloResultSet = sync.Pool{
New: func() any {
return new(TaobaoXhotelInfoListGetForHelloResultSet)
},
}
// GetTaobaoXhotelInfoListGetForHelloResultSet() 从对象池中获取TaobaoXhotelInfoListGetForHelloResultSet
func GetTaobaoXhotelInfoListGetForHelloResultSet() *TaobaoXhotelInfoListGetForHelloResultSet {
return poolTaobaoXhotelInfoListGetForHelloResultSet.Get().(*TaobaoXhotelInfoListGetForHelloResultSet)
}
// ReleaseTaobaoXhotelInfoListGetForHelloResultSet 释放TaobaoXhotelInfoListGetForHelloResultSet
func ReleaseTaobaoXhotelInfoListGetForHelloResultSet(v *TaobaoXhotelInfoListGetForHelloResultSet) {
v.Results = v.Results[:0]
v.ChannelId = ""
v.ErrorCode = ""
v.ErrorMsg = ""
v.H5ListUrl = ""
v.HotelListUrl = ""
v.RequestId = ""
v.SuccessFlag = 0
v.TotalResults = 0
v.Version = 0
v.LastId = 0
v.Error = false
v.HasNext = false
v.Success = false
poolTaobaoXhotelInfoListGetForHelloResultSet.Put(v)
}