-
Notifications
You must be signed in to change notification settings - Fork 9
/
UnchargeCheckOpenReq.go
49 lines (44 loc) · 1.54 KB
/
UnchargeCheckOpenReq.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
package alsc
import (
"sync"
)
// UnchargeCheckOpenReq 结构体
type UnchargeCheckOpenReq struct {
// 品牌Id(不能和outbrandid同时为空)
BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
// 卡号
CardId string `json:"card_id,omitempty" xml:"card_id,omitempty"`
// 顾客Id
CustomerId string `json:"customer_id,omitempty" xml:"customer_id,omitempty"`
// 门店id(不能和outshopid同时为空)
ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
// 原充值订单Id
SrcOuterOrderId string `json:"src_outer_order_id,omitempty" xml:"src_outer_order_id,omitempty"`
// 外部门店ID(不能和shopid同时为空)
OutShopId string `json:"out_shop_id,omitempty" xml:"out_shop_id,omitempty"`
// 外部品牌ID(不能和brandid同时为空)
OutBrandId string `json:"out_brand_id,omitempty" xml:"out_brand_id,omitempty"`
// CS是辰森,KRY是客如云
BizChannel string `json:"biz_channel,omitempty" xml:"biz_channel,omitempty"`
}
var poolUnchargeCheckOpenReq = sync.Pool{
New: func() any {
return new(UnchargeCheckOpenReq)
},
}
// GetUnchargeCheckOpenReq() 从对象池中获取UnchargeCheckOpenReq
func GetUnchargeCheckOpenReq() *UnchargeCheckOpenReq {
return poolUnchargeCheckOpenReq.Get().(*UnchargeCheckOpenReq)
}
// ReleaseUnchargeCheckOpenReq 释放UnchargeCheckOpenReq
func ReleaseUnchargeCheckOpenReq(v *UnchargeCheckOpenReq) {
v.BrandId = ""
v.CardId = ""
v.CustomerId = ""
v.ShopId = ""
v.SrcOuterOrderId = ""
v.OutShopId = ""
v.OutBrandId = ""
v.BizChannel = ""
poolUnchargeCheckOpenReq.Put(v)
}