/
ActivityCustomerInfoDto.go
49 lines (44 loc) · 1.57 KB
/
ActivityCustomerInfoDto.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 alihouse
import (
"sync"
)
// ActivityCustomerInfoDto 结构体
type ActivityCustomerInfoDto struct {
// 团队名称
TeamName string `json:"team_name,omitempty" xml:"team_name,omitempty"`
// 顾问名称
EmployeeName string `json:"employee_name,omitempty" xml:"employee_name,omitempty"`
// 客户身份证
CustomerCertNo string `json:"customer_cert_no,omitempty" xml:"customer_cert_no,omitempty"`
// 外部顾问员工id
OuterEmployeeId string `json:"outer_employee_id,omitempty" xml:"outer_employee_id,omitempty"`
// 客户姓名
CustomerMobile string `json:"customer_mobile,omitempty" xml:"customer_mobile,omitempty"`
// 客户手机号
CustomerName string `json:"customer_name,omitempty" xml:"customer_name,omitempty"`
// 外部客户id
OuterCustomerId string `json:"outer_customer_id,omitempty" xml:"outer_customer_id,omitempty"`
// 是否删除
IsDeleted int64 `json:"is_deleted,omitempty" xml:"is_deleted,omitempty"`
}
var poolActivityCustomerInfoDto = sync.Pool{
New: func() any {
return new(ActivityCustomerInfoDto)
},
}
// GetActivityCustomerInfoDto() 从对象池中获取ActivityCustomerInfoDto
func GetActivityCustomerInfoDto() *ActivityCustomerInfoDto {
return poolActivityCustomerInfoDto.Get().(*ActivityCustomerInfoDto)
}
// ReleaseActivityCustomerInfoDto 释放ActivityCustomerInfoDto
func ReleaseActivityCustomerInfoDto(v *ActivityCustomerInfoDto) {
v.TeamName = ""
v.EmployeeName = ""
v.CustomerCertNo = ""
v.OuterEmployeeId = ""
v.CustomerMobile = ""
v.CustomerName = ""
v.OuterCustomerId = ""
v.IsDeleted = 0
poolActivityCustomerInfoDto.Put(v)
}