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