-
Notifications
You must be signed in to change notification settings - Fork 9
/
RefundCsApplyRenderResponseDto.go
40 lines (35 loc) · 1.41 KB
/
RefundCsApplyRenderResponseDto.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
package wdk
import (
"sync"
)
// RefundCsApplyRenderResponseDto 结构体
type RefundCsApplyRenderResponseDto struct {
// 申请退款的子订单列表
OutSubOrders []Outsuborders `json:"out_sub_orders,omitempty" xml:"out_sub_orders>outsuborders,omitempty"`
// 退款原因枚举列表
ReasonList []Reasonlist `json:"reason_list,omitempty" xml:"reason_list>reasonlist,omitempty"`
// 商家经营店ID
StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
// 渠道主订单ID
OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
// 请求唯一键, 提交请求(alibaba.tcls.aelophy.refund.csapply)时保持一致
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}
var poolRefundCsApplyRenderResponseDto = sync.Pool{
New: func() any {
return new(RefundCsApplyRenderResponseDto)
},
}
// GetRefundCsApplyRenderResponseDto() 从对象池中获取RefundCsApplyRenderResponseDto
func GetRefundCsApplyRenderResponseDto() *RefundCsApplyRenderResponseDto {
return poolRefundCsApplyRenderResponseDto.Get().(*RefundCsApplyRenderResponseDto)
}
// ReleaseRefundCsApplyRenderResponseDto 释放RefundCsApplyRenderResponseDto
func ReleaseRefundCsApplyRenderResponseDto(v *RefundCsApplyRenderResponseDto) {
v.OutSubOrders = v.OutSubOrders[:0]
v.ReasonList = v.ReasonList[:0]
v.StoreId = ""
v.OutOrderId = ""
v.RequestId = ""
poolRefundCsApplyRenderResponseDto.Put(v)
}