-
Notifications
You must be signed in to change notification settings - Fork 9
/
ChargePreCheckOpenReq.go
43 lines (38 loc) · 1.36 KB
/
ChargePreCheckOpenReq.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
package alsc
import (
"sync"
)
// ChargePreCheckOpenReq 结构体
type ChargePreCheckOpenReq struct {
// 品牌ID(和outbrandid不能同时为空)
BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
// 卡Id,用于会员卡、礼品卡校验
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(不能和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"`
}
var poolChargePreCheckOpenReq = sync.Pool{
New: func() any {
return new(ChargePreCheckOpenReq)
},
}
// GetChargePreCheckOpenReq() 从对象池中获取ChargePreCheckOpenReq
func GetChargePreCheckOpenReq() *ChargePreCheckOpenReq {
return poolChargePreCheckOpenReq.Get().(*ChargePreCheckOpenReq)
}
// ReleaseChargePreCheckOpenReq 释放ChargePreCheckOpenReq
func ReleaseChargePreCheckOpenReq(v *ChargePreCheckOpenReq) {
v.BrandId = ""
v.CardId = ""
v.CustomerId = ""
v.ShopId = ""
v.OutShopId = ""
v.OutBrandId = ""
poolChargePreCheckOpenReq.Put(v)
}