-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoFilmLotteryPerformanceAPIResponse.go
70 lines (61 loc) · 2.53 KB
/
TaobaoFilmLotteryPerformanceAPIResponse.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
65
66
67
68
69
70
package film
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoFilmLotteryPerformanceAPIResponse 淘票票履约发放权益 API返回值
// taobao.film.lottery.performance
//
// 对外第三方合作渠道通过抽奖形式发放权益
type TaobaoFilmLotteryPerformanceAPIResponse struct {
model.CommonResponse
TaobaoFilmLotteryPerformanceAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoFilmLotteryPerformanceAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoFilmLotteryPerformanceAPIResponseModel).Reset()
}
// TaobaoFilmLotteryPerformanceAPIResponseModel is 淘票票履约发放权益 成功返回结果
type TaobaoFilmLotteryPerformanceAPIResponseModel struct {
XMLName xml.Name `xml:"film_lottery_performance_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 错误码
ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
// returnErrorStackTrace
ReturnErrorStackTrace string `json:"return_error_stack_trace,omitempty" xml:"return_error_stack_trace,omitempty"`
// 错误描述
ReturnMessage string `json:"return_message,omitempty" xml:"return_message,omitempty"`
// returnErrorOper
ReturnErrorOper string `json:"return_error_oper,omitempty" xml:"return_error_oper,omitempty"`
// returnErrorSolution
ReturnErrorSolution string `json:"return_error_solution,omitempty" xml:"return_error_solution,omitempty"`
// 返回值
ReturnValue *LotteryPerformanceResult `json:"return_value,omitempty" xml:"return_value,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoFilmLotteryPerformanceAPIResponseModel) Reset() {
m.RequestId = ""
m.ReturnCode = ""
m.ReturnErrorStackTrace = ""
m.ReturnMessage = ""
m.ReturnErrorOper = ""
m.ReturnErrorSolution = ""
m.ReturnValue = nil
}
var poolTaobaoFilmLotteryPerformanceAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoFilmLotteryPerformanceAPIResponse)
},
}
// GetTaobaoFilmLotteryPerformanceAPIResponse 从 sync.Pool 获取 TaobaoFilmLotteryPerformanceAPIResponse
func GetTaobaoFilmLotteryPerformanceAPIResponse() *TaobaoFilmLotteryPerformanceAPIResponse {
return poolTaobaoFilmLotteryPerformanceAPIResponse.Get().(*TaobaoFilmLotteryPerformanceAPIResponse)
}
// ReleaseTaobaoFilmLotteryPerformanceAPIResponse 将 TaobaoFilmLotteryPerformanceAPIResponse 保存到 sync.Pool
func ReleaseTaobaoFilmLotteryPerformanceAPIResponse(v *TaobaoFilmLotteryPerformanceAPIResponse) {
v.Reset()
poolTaobaoFilmLotteryPerformanceAPIResponse.Put(v)
}