-
Notifications
You must be signed in to change notification settings - Fork 9
/
CustomerUpdateOpenReq.go
82 lines (77 loc) · 2.48 KB
/
CustomerUpdateOpenReq.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
package alsc
import (
"sync"
)
// CustomerUpdateOpenReq 结构体
type CustomerUpdateOpenReq struct {
// 人群标签
TagIds []string `json:"tag_ids,omitempty" xml:"tag_ids>string,omitempty"`
// 地址
Address string `json:"address,omitempty" xml:"address,omitempty"`
// 生日
Birthday string `json:"birthday,omitempty" xml:"birthday,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"`
// 邮箱
Email string `json:"email,omitempty" xml:"email,omitempty"`
// 扩展信息
ExtInfo string `json:"ext_info,omitempty" xml:"ext_info,omitempty"`
// 发票抬头
Invoice string `json:"invoice,omitempty" xml:"invoice,omitempty"`
// 等级ID
LevelId string `json:"level_id,omitempty" xml:"level_id,omitempty"`
// 移动电话
Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
// 姓名
Name string `json:"name,omitempty" xml:"name,omitempty"`
// 操作人ID
OperatorId string `json:"operator_id,omitempty" xml:"operator_id,omitempty"`
// 操作人姓名
OperatorName string `json:"operator_name,omitempty" xml:"operator_name,omitempty"`
// 固定电话
Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
// 备注
Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
// 请求ID,幂等处理
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 外部品牌id
OutBrandId string `json:"out_brand_id,omitempty" xml:"out_brand_id,omitempty"`
// 性别
Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"`
// 0顾客,1会员
CustomerType int64 `json:"customer_type,omitempty" xml:"customer_type,omitempty"`
}
var poolCustomerUpdateOpenReq = sync.Pool{
New: func() any {
return new(CustomerUpdateOpenReq)
},
}
// GetCustomerUpdateOpenReq() 从对象池中获取CustomerUpdateOpenReq
func GetCustomerUpdateOpenReq() *CustomerUpdateOpenReq {
return poolCustomerUpdateOpenReq.Get().(*CustomerUpdateOpenReq)
}
// ReleaseCustomerUpdateOpenReq 释放CustomerUpdateOpenReq
func ReleaseCustomerUpdateOpenReq(v *CustomerUpdateOpenReq) {
v.TagIds = v.TagIds[:0]
v.Address = ""
v.Birthday = ""
v.BrandId = ""
v.CustomerId = ""
v.Email = ""
v.ExtInfo = ""
v.Invoice = ""
v.LevelId = ""
v.Mobile = ""
v.Name = ""
v.OperatorId = ""
v.OperatorName = ""
v.Phone = ""
v.Remark = ""
v.RequestId = ""
v.OutBrandId = ""
v.Gender = 0
v.CustomerType = 0
poolCustomerUpdateOpenReq.Put(v)
}