-
Notifications
You must be signed in to change notification settings - Fork 12
/
CainiaoEndpointLockerTopOrderNoticesendQueryData.go
40 lines (35 loc) · 1.77 KB
/
CainiaoEndpointLockerTopOrderNoticesendQueryData.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
package cainiaolocker
import (
"sync"
)
// CainiaoEndpointLockerTopOrderNoticesendQueryData 结构体
type CainiaoEndpointLockerTopOrderNoticesendQueryData struct {
// 用于返回淘系包裹脱密手机号用作数据核对
GetterPhone string `json:"getter_phone,omitempty" xml:"getter_phone,omitempty"`
// 快递公司名称
CpName string `json:"cp_name,omitempty" xml:"cp_name,omitempty"`
// 快递公司编码
CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
// 裹裹发送通知消息标识,false-?非裹裹发送,true-裹裹发送
GuoguoSendNoticeFlag bool `json:"guoguo_send_notice_flag,omitempty" xml:"guoguo_send_notice_flag,omitempty"`
// 是否需要输入手机号,false-不需要,裹裹可以自己判断手机号,true-需要手动输入手机号
NeedInputPhone bool `json:"need_input_phone,omitempty" xml:"need_input_phone,omitempty"`
}
var poolCainiaoEndpointLockerTopOrderNoticesendQueryData = sync.Pool{
New: func() any {
return new(CainiaoEndpointLockerTopOrderNoticesendQueryData)
},
}
// GetCainiaoEndpointLockerTopOrderNoticesendQueryData() 从对象池中获取CainiaoEndpointLockerTopOrderNoticesendQueryData
func GetCainiaoEndpointLockerTopOrderNoticesendQueryData() *CainiaoEndpointLockerTopOrderNoticesendQueryData {
return poolCainiaoEndpointLockerTopOrderNoticesendQueryData.Get().(*CainiaoEndpointLockerTopOrderNoticesendQueryData)
}
// ReleaseCainiaoEndpointLockerTopOrderNoticesendQueryData 释放CainiaoEndpointLockerTopOrderNoticesendQueryData
func ReleaseCainiaoEndpointLockerTopOrderNoticesendQueryData(v *CainiaoEndpointLockerTopOrderNoticesendQueryData) {
v.GetterPhone = ""
v.CpName = ""
v.CpCode = ""
v.GuoguoSendNoticeFlag = false
v.NeedInputPhone = false
poolCainiaoEndpointLockerTopOrderNoticesendQueryData.Put(v)
}