-
Notifications
You must be signed in to change notification settings - Fork 9
/
ExCoinIssueParam.go
43 lines (38 loc) · 1.12 KB
/
ExCoinIssueParam.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
package charity
import (
"sync"
)
// ExCoinIssueParam 结构体
type ExCoinIssueParam struct {
// 开放标识
OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
// 业务编码
BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
// 幂等ID
IdempotentId string `json:"idempotent_id,omitempty" xml:"idempotent_id,omitempty"`
// 渠道编码
ChannelCode string `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
// 爱豆发放时间
IssueTime int64 `json:"issue_time,omitempty" xml:"issue_time,omitempty"`
// 行为ID
ActionId int64 `json:"action_id,omitempty" xml:"action_id,omitempty"`
}
var poolExCoinIssueParam = sync.Pool{
New: func() any {
return new(ExCoinIssueParam)
},
}
// GetExCoinIssueParam() 从对象池中获取ExCoinIssueParam
func GetExCoinIssueParam() *ExCoinIssueParam {
return poolExCoinIssueParam.Get().(*ExCoinIssueParam)
}
// ReleaseExCoinIssueParam 释放ExCoinIssueParam
func ReleaseExCoinIssueParam(v *ExCoinIssueParam) {
v.OpenId = ""
v.BizCode = ""
v.IdempotentId = ""
v.ChannelCode = ""
v.IssueTime = 0
v.ActionId = 0
poolExCoinIssueParam.Put(v)
}