-
Notifications
You must be signed in to change notification settings - Fork 9
/
TopDistributionOrderDetail.go
103 lines (98 loc) · 3.42 KB
/
TopDistributionOrderDetail.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package trade
import (
"sync"
)
// TopDistributionOrderDetail 结构体
type TopDistributionOrderDetail struct {
// 买家昵称
BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
// 订单状态
OrderStatusDesc string `json:"order_status_desc,omitempty" xml:"order_status_desc,omitempty"`
// 房型名称
RoomTypeName string `json:"room_type_name,omitempty" xml:"room_type_name,omitempty"`
// 离店日期
CheckoutDate string `json:"checkout_date,omitempty" xml:"checkout_date,omitempty"`
// rp名称
RpName string `json:"rp_name,omitempty" xml:"rp_name,omitempty"`
// 订单更新时间
GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
// 订单类型名称
TypeName string `json:"type_name,omitempty" xml:"type_name,omitempty"`
// 卖家昵称
SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
// 酒店名称
HotelName string `json:"hotel_name,omitempty" xml:"hotel_name,omitempty"`
// 支付时间
PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
// 入住时间
CheckinDate string `json:"checkin_date,omitempty" xml:"checkin_date,omitempty"`
// 买家姓名
ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
// 订单创建时间
Created string `json:"created,omitempty" xml:"created,omitempty"`
// 分销渠道外部订单号
DisOid string `json:"dis_oid,omitempty" xml:"dis_oid,omitempty"`
// 飞猪拆单订单(当一次下单定多间房的时候会出现这种情况)
MultiTids string `json:"multi_tids,omitempty" xml:"multi_tids,omitempty"`
// 房型id
Rid int64 `json:"rid,omitempty" xml:"rid,omitempty"`
// 订单类型id
Type int64 `json:"type,omitempty" xml:"type,omitempty"`
// 付款金额
Payment int64 `json:"payment,omitempty" xml:"payment,omitempty"`
// 总房费
TotalRoomPrice int64 `json:"total_room_price,omitempty" xml:"total_room_price,omitempty"`
// 订单状态Code
OrderStatusCode int64 `json:"order_status_code,omitempty" xml:"order_status_code,omitempty"`
// 酒店hid
Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
// 飞猪订单号
Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
// 房间数
RoomNumber int64 `json:"room_number,omitempty" xml:"room_number,omitempty"`
// 价格计划ID
Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"`
// 间夜
Nights int64 `json:"nights,omitempty" xml:"nights,omitempty"`
// 商品id
ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}
var poolTopDistributionOrderDetail = sync.Pool{
New: func() any {
return new(TopDistributionOrderDetail)
},
}
// GetTopDistributionOrderDetail() 从对象池中获取TopDistributionOrderDetail
func GetTopDistributionOrderDetail() *TopDistributionOrderDetail {
return poolTopDistributionOrderDetail.Get().(*TopDistributionOrderDetail)
}
// ReleaseTopDistributionOrderDetail 释放TopDistributionOrderDetail
func ReleaseTopDistributionOrderDetail(v *TopDistributionOrderDetail) {
v.BuyerNick = ""
v.OrderStatusDesc = ""
v.RoomTypeName = ""
v.CheckoutDate = ""
v.RpName = ""
v.GmtModified = ""
v.TypeName = ""
v.SellerNick = ""
v.HotelName = ""
v.PayTime = ""
v.CheckinDate = ""
v.ContactName = ""
v.Created = ""
v.DisOid = ""
v.MultiTids = ""
v.Rid = 0
v.Type = 0
v.Payment = 0
v.TotalRoomPrice = 0
v.OrderStatusCode = 0
v.Hid = 0
v.Tid = 0
v.RoomNumber = 0
v.Rpid = 0
v.Nights = 0
v.ItemId = 0
poolTopDistributionOrderDetail.Put(v)
}