-
Notifications
You must be signed in to change notification settings - Fork 9
/
RefundCsApplyDto.go
43 lines (38 loc) · 1.18 KB
/
RefundCsApplyDto.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 wdk
import (
"sync"
)
// RefundCsApplyDto 结构体
type RefundCsApplyDto struct {
// 申请退款的子订单ID列表
OutSubOrderIds []string `json:"out_sub_order_ids,omitempty" xml:"out_sub_order_ids>string,omitempty"`
// 渠道订单ID
OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
// 商家经营店ID
StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
// 请求唯一键
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 备注说明
Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
// 退款原因id
ReasonId int64 `json:"reason_id,omitempty" xml:"reason_id,omitempty"`
}
var poolRefundCsApplyDto = sync.Pool{
New: func() any {
return new(RefundCsApplyDto)
},
}
// GetRefundCsApplyDto() 从对象池中获取RefundCsApplyDto
func GetRefundCsApplyDto() *RefundCsApplyDto {
return poolRefundCsApplyDto.Get().(*RefundCsApplyDto)
}
// ReleaseRefundCsApplyDto 释放RefundCsApplyDto
func ReleaseRefundCsApplyDto(v *RefundCsApplyDto) {
v.OutSubOrderIds = v.OutSubOrderIds[:0]
v.OutOrderId = ""
v.StoreId = ""
v.RequestId = ""
v.Memo = ""
v.ReasonId = 0
poolRefundCsApplyDto.Put(v)
}