-
Notifications
You must be signed in to change notification settings - Fork 12
/
TaobaoAlitripAxinTransPayImgUploadResult.go
43 lines (38 loc) · 1.46 KB
/
TaobaoAlitripAxinTransPayImgUploadResult.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 axintrade
import (
"sync"
)
// TaobaoAlitripAxinTransPayImgUploadResult 结构体
type TaobaoAlitripAxinTransPayImgUploadResult struct {
// 错误信息
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// 错误码
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 提示信息
InfoMsg string `json:"info_msg,omitempty" xml:"info_msg,omitempty"`
// 返回素材id
Data *AxinPayImgUploadResDto `json:"data,omitempty" xml:"data,omitempty"`
// 是否需要重试
NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolTaobaoAlitripAxinTransPayImgUploadResult = sync.Pool{
New: func() any {
return new(TaobaoAlitripAxinTransPayImgUploadResult)
},
}
// GetTaobaoAlitripAxinTransPayImgUploadResult() 从对象池中获取TaobaoAlitripAxinTransPayImgUploadResult
func GetTaobaoAlitripAxinTransPayImgUploadResult() *TaobaoAlitripAxinTransPayImgUploadResult {
return poolTaobaoAlitripAxinTransPayImgUploadResult.Get().(*TaobaoAlitripAxinTransPayImgUploadResult)
}
// ReleaseTaobaoAlitripAxinTransPayImgUploadResult 释放TaobaoAlitripAxinTransPayImgUploadResult
func ReleaseTaobaoAlitripAxinTransPayImgUploadResult(v *TaobaoAlitripAxinTransPayImgUploadResult) {
v.ErrorMsg = ""
v.ErrorCode = ""
v.InfoMsg = ""
v.Data = nil
v.NeedRetry = false
v.Success = false
poolTaobaoAlitripAxinTransPayImgUploadResult.Put(v)
}