-
Notifications
You must be signed in to change notification settings - Fork 9
/
FCodeMerchantSendCodeRq.go
58 lines (53 loc) · 1.86 KB
/
FCodeMerchantSendCodeRq.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
package film
import (
"sync"
)
// FCodeMerchantSendCodeRq 结构体
type FCodeMerchantSendCodeRq struct {
// 外部业务用户id
OutUid string `json:"out_uid,omitempty" xml:"out_uid,omitempty"`
// 发券码商品mixId
MixId string `json:"mix_id,omitempty" xml:"mix_id,omitempty"`
// 外部商户发码的外部业务号
ExtOrderId string `json:"ext_order_id,omitempty" xml:"ext_order_id,omitempty"`
// 外部下单时间
OrderTime string `json:"order_time,omitempty" xml:"order_time,omitempty"`
// 用户ID类型 TAOBAO 或者 TAOBAO_NAME
UserIdType string `json:"user_id_type,omitempty" xml:"user_id_type,omitempty"`
// 外部商户标示
PartnerCode string `json:"partner_code,omitempty" xml:"partner_code,omitempty"`
// 外面用户昵称
OutUserName string `json:"out_user_name,omitempty" xml:"out_user_name,omitempty"`
// 请求属性字段
Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
// 淘宝用户ID列表,用|分割
UserIdList string `json:"user_id_list,omitempty" xml:"user_id_list,omitempty"`
// 每个用户发码的数量
EachNum int64 `json:"each_num,omitempty" xml:"each_num,omitempty"`
// 发码总数
Number int64 `json:"number,omitempty" xml:"number,omitempty"`
}
var poolFCodeMerchantSendCodeRq = sync.Pool{
New: func() any {
return new(FCodeMerchantSendCodeRq)
},
}
// GetFCodeMerchantSendCodeRq() 从对象池中获取FCodeMerchantSendCodeRq
func GetFCodeMerchantSendCodeRq() *FCodeMerchantSendCodeRq {
return poolFCodeMerchantSendCodeRq.Get().(*FCodeMerchantSendCodeRq)
}
// ReleaseFCodeMerchantSendCodeRq 释放FCodeMerchantSendCodeRq
func ReleaseFCodeMerchantSendCodeRq(v *FCodeMerchantSendCodeRq) {
v.OutUid = ""
v.MixId = ""
v.ExtOrderId = ""
v.OrderTime = ""
v.UserIdType = ""
v.PartnerCode = ""
v.OutUserName = ""
v.Feature = ""
v.UserIdList = ""
v.EachNum = 0
v.Number = 0
poolFCodeMerchantSendCodeRq.Put(v)
}