-
Notifications
You must be signed in to change notification settings - Fork 9
/
AppleTopNewSignNotifyDo.go
52 lines (47 loc) · 1.46 KB
/
AppleTopNewSignNotifyDo.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
package game
import (
"sync"
)
// AppleTopNewSignNotifyDo 结构体
type AppleTopNewSignNotifyDo struct {
// 电子卡卡号
CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
// TopUpTocken
Tut string `json:"tut,omitempty" xml:"tut,omitempty"`
// 商户订单号
OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
// 附加信息,后续可以扩展
Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
// 商户上送的用户Id
UserNo string `json:"user_no,omitempty" xml:"user_no,omitempty"`
// 商户上送UCI
Uci string `json:"uci,omitempty" xml:"uci,omitempty"`
// Mask id
Mai string `json:"mai,omitempty" xml:"mai,omitempty"`
// 网关请求流水号,每次请求唯一
QueryId string `json:"query_id,omitempty" xml:"query_id,omitempty"`
// 商户上送tUCI
Tuci string `json:"tuci,omitempty" xml:"tuci,omitempty"`
}
var poolAppleTopNewSignNotifyDo = sync.Pool{
New: func() any {
return new(AppleTopNewSignNotifyDo)
},
}
// GetAppleTopNewSignNotifyDo() 从对象池中获取AppleTopNewSignNotifyDo
func GetAppleTopNewSignNotifyDo() *AppleTopNewSignNotifyDo {
return poolAppleTopNewSignNotifyDo.Get().(*AppleTopNewSignNotifyDo)
}
// ReleaseAppleTopNewSignNotifyDo 释放AppleTopNewSignNotifyDo
func ReleaseAppleTopNewSignNotifyDo(v *AppleTopNewSignNotifyDo) {
v.CardNo = ""
v.Tut = ""
v.OrderNo = ""
v.Memo = ""
v.UserNo = ""
v.Uci = ""
v.Mai = ""
v.QueryId = ""
v.Tuci = ""
poolAppleTopNewSignNotifyDo.Put(v)
}