-
Notifications
You must be signed in to change notification settings - Fork 9
/
CustomerIdQueryOpenReq.go
64 lines (59 loc) · 2.2 KB
/
CustomerIdQueryOpenReq.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
package alsc
import (
"sync"
)
// CustomerIdQueryOpenReq 结构体
type CustomerIdQueryOpenReq struct {
// 查询选项,默认查询顾客基础信息, CARD:查询顾客名下的卡列表 ,RECHARGE:查询卡下的储值账户信息 ,POINT:查询顾客的积分信息.
Options []string `json:"options,omitempty" xml:"options>string,omitempty"`
// 品牌ID 外部品牌id 2选1
BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
// 顾客ID
CustomerId string `json:"customer_id,omitempty" xml:"customer_id,omitempty"`
// 店铺ID和外部门店ID必须一
ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
// 手机号码
Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
// 物理卡号
PhysicalCardId string `json:"physical_card_id,omitempty" xml:"physical_card_id,omitempty"`
// 电子卡号
CardId string `json:"card_id,omitempty" xml:"card_id,omitempty"`
// 外部品牌id
OutBrandId string `json:"out_brand_id,omitempty" xml:"out_brand_id,omitempty"`
// 外部门店ID,店铺ID和外部门店ID必须一
OutShopId string `json:"out_shop_id,omitempty" xml:"out_shop_id,omitempty"`
// 微信openID
WechatOpenId string `json:"wechat_open_id,omitempty" xml:"wechat_open_id,omitempty"`
// 微信小程序ID
WechatAppId string `json:"wechat_app_id,omitempty" xml:"wechat_app_id,omitempty"`
// 座机
Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
// 支付宝ID
AlipayId string `json:"alipay_id,omitempty" xml:"alipay_id,omitempty"`
}
var poolCustomerIdQueryOpenReq = sync.Pool{
New: func() any {
return new(CustomerIdQueryOpenReq)
},
}
// GetCustomerIdQueryOpenReq() 从对象池中获取CustomerIdQueryOpenReq
func GetCustomerIdQueryOpenReq() *CustomerIdQueryOpenReq {
return poolCustomerIdQueryOpenReq.Get().(*CustomerIdQueryOpenReq)
}
// ReleaseCustomerIdQueryOpenReq 释放CustomerIdQueryOpenReq
func ReleaseCustomerIdQueryOpenReq(v *CustomerIdQueryOpenReq) {
v.Options = v.Options[:0]
v.BrandId = ""
v.CustomerId = ""
v.ShopId = ""
v.Mobile = ""
v.PhysicalCardId = ""
v.CardId = ""
v.OutBrandId = ""
v.OutShopId = ""
v.WechatOpenId = ""
v.WechatAppId = ""
v.Phone = ""
v.AlipayId = ""
poolCustomerIdQueryOpenReq.Put(v)
}