-
Notifications
You must be signed in to change notification settings - Fork 9
/
TopTuanItemSkuVOList.go
61 lines (56 loc) · 1.77 KB
/
TopTuanItemSkuVOList.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
package tuanhotel
import (
"sync"
)
// TopTuanItemSkuVOList 结构体
type TopTuanItemSkuVOList struct {
// 宝贝标题
ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"`
// 套餐原价
OrigPrice string `json:"orig_price,omitempty" xml:"orig_price,omitempty"`
// 套餐价格
Price string `json:"price,omitempty" xml:"price,omitempty"`
// 套餐名称
Name string `json:"name,omitempty" xml:"name,omitempty"`
// 商家编码
OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
// 套餐间夜
NightCount int64 `json:"night_count,omitempty" xml:"night_count,omitempty"`
// 套餐库存
Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
// 宝贝ID
ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
// 卖家ID
SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
// 套餐人数
PeopleCount int64 `json:"people_count,omitempty" xml:"people_count,omitempty"`
// 日历库存信息
CalendarInfo *TopSkuCalendarInfo `json:"calendar_info,omitempty" xml:"calendar_info,omitempty"`
// skuId
SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}
var poolTopTuanItemSkuVOList = sync.Pool{
New: func() any {
return new(TopTuanItemSkuVOList)
},
}
// GetTopTuanItemSkuVOList() 从对象池中获取TopTuanItemSkuVOList
func GetTopTuanItemSkuVOList() *TopTuanItemSkuVOList {
return poolTopTuanItemSkuVOList.Get().(*TopTuanItemSkuVOList)
}
// ReleaseTopTuanItemSkuVOList 释放TopTuanItemSkuVOList
func ReleaseTopTuanItemSkuVOList(v *TopTuanItemSkuVOList) {
v.ItemTitle = ""
v.OrigPrice = ""
v.Price = ""
v.Name = ""
v.OuterId = ""
v.NightCount = 0
v.Quantity = 0
v.ItemId = 0
v.SellerId = 0
v.PeopleCount = 0
v.CalendarInfo = nil
v.SkuId = 0
poolTopTuanItemSkuVOList.Put(v)
}