-
Notifications
You must be signed in to change notification settings - Fork 9
/
FastBuyPosReverseRequest.go
43 lines (38 loc) · 1.37 KB
/
FastBuyPosReverseRequest.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 trade
import (
"sync"
)
// FastBuyPosReverseRequest 结构体
type FastBuyPosReverseRequest struct {
// 外部唯一订单号
OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
// 外部退款单号
OutRefundId string `json:"out_refund_id,omitempty" xml:"out_refund_id,omitempty"`
// 经营店id
StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
// 退款操作员工工号
OperatorNum string `json:"operator_num,omitempty" xml:"operator_num,omitempty"`
// 逆向支付宝交易号,对账使用
RefundAlipayTradeId string `json:"refund_alipay_trade_id,omitempty" xml:"refund_alipay_trade_id,omitempty"`
// 外部门店编码
OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
}
var poolFastBuyPosReverseRequest = sync.Pool{
New: func() any {
return new(FastBuyPosReverseRequest)
},
}
// GetFastBuyPosReverseRequest() 从对象池中获取FastBuyPosReverseRequest
func GetFastBuyPosReverseRequest() *FastBuyPosReverseRequest {
return poolFastBuyPosReverseRequest.Get().(*FastBuyPosReverseRequest)
}
// ReleaseFastBuyPosReverseRequest 释放FastBuyPosReverseRequest
func ReleaseFastBuyPosReverseRequest(v *FastBuyPosReverseRequest) {
v.OutOrderId = ""
v.OutRefundId = ""
v.StoreId = ""
v.OperatorNum = ""
v.RefundAlipayTradeId = ""
v.OutShopCode = ""
poolFastBuyPosReverseRequest.Put(v)
}