-
Notifications
You must be signed in to change notification settings - Fork 9
/
TmallServiceSettlementFbBillQueryAPIResponse.go
64 lines (55 loc) · 2.36 KB
/
TmallServiceSettlementFbBillQueryAPIResponse.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
53
54
55
56
57
58
59
60
61
62
63
64
package tmallservice
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TmallServiceSettlementFbBillQueryAPIResponse 服务商工单结算对账查询 API返回值
// tmall.service.settlement.fb.bill.query
//
// 服务商工单结算对账查询,用于查询服务工单对应的结算费用情况,含工单对应的服务费、退款、增加费用、分成费用、提现流水
type TmallServiceSettlementFbBillQueryAPIResponse struct {
model.CommonResponse
TmallServiceSettlementFbBillQueryAPIResponseModel
}
// Reset 清空结构体
func (m *TmallServiceSettlementFbBillQueryAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TmallServiceSettlementFbBillQueryAPIResponseModel).Reset()
}
// TmallServiceSettlementFbBillQueryAPIResponseModel is 服务商工单结算对账查询 成功返回结果
type TmallServiceSettlementFbBillQueryAPIResponseModel struct {
XMLName xml.Name `xml:"tmall_service_settlement_fb_bill_query_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 错误信息
RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
// 错误码
RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
// 分页数据
Obj *PagedResult `json:"obj,omitempty" xml:"obj,omitempty"`
// 是否成功
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *TmallServiceSettlementFbBillQueryAPIResponseModel) Reset() {
m.RequestId = ""
m.RetMsg = ""
m.RetCode = ""
m.Obj = nil
m.IsSuccess = false
}
var poolTmallServiceSettlementFbBillQueryAPIResponse = sync.Pool{
New: func() any {
return new(TmallServiceSettlementFbBillQueryAPIResponse)
},
}
// GetTmallServiceSettlementFbBillQueryAPIResponse 从 sync.Pool 获取 TmallServiceSettlementFbBillQueryAPIResponse
func GetTmallServiceSettlementFbBillQueryAPIResponse() *TmallServiceSettlementFbBillQueryAPIResponse {
return poolTmallServiceSettlementFbBillQueryAPIResponse.Get().(*TmallServiceSettlementFbBillQueryAPIResponse)
}
// ReleaseTmallServiceSettlementFbBillQueryAPIResponse 将 TmallServiceSettlementFbBillQueryAPIResponse 保存到 sync.Pool
func ReleaseTmallServiceSettlementFbBillQueryAPIResponse(v *TmallServiceSettlementFbBillQueryAPIResponse) {
v.Reset()
poolTmallServiceSettlementFbBillQueryAPIResponse.Put(v)
}