-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaServicecenterSpserviceorderQueryResult.go
37 lines (32 loc) · 1.32 KB
/
AlibabaServicecenterSpserviceorderQueryResult.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
package tmallservice
import (
"sync"
)
// AlibabaServicecenterSpserviceorderQueryResult 结构体
type AlibabaServicecenterSpserviceorderQueryResult struct {
// 错误描述
MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
// 错误码
MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
// 分页数据
ResultData *Paged `json:"result_data,omitempty" xml:"result_data,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAlibabaServicecenterSpserviceorderQueryResult = sync.Pool{
New: func() any {
return new(AlibabaServicecenterSpserviceorderQueryResult)
},
}
// GetAlibabaServicecenterSpserviceorderQueryResult() 从对象池中获取AlibabaServicecenterSpserviceorderQueryResult
func GetAlibabaServicecenterSpserviceorderQueryResult() *AlibabaServicecenterSpserviceorderQueryResult {
return poolAlibabaServicecenterSpserviceorderQueryResult.Get().(*AlibabaServicecenterSpserviceorderQueryResult)
}
// ReleaseAlibabaServicecenterSpserviceorderQueryResult 释放AlibabaServicecenterSpserviceorderQueryResult
func ReleaseAlibabaServicecenterSpserviceorderQueryResult(v *AlibabaServicecenterSpserviceorderQueryResult) {
v.MsgInfo = ""
v.MsgCode = ""
v.ResultData = nil
v.Success = false
poolAlibabaServicecenterSpserviceorderQueryResult.Put(v)
}