-
Notifications
You must be signed in to change notification settings - Fork 12
/
AliexpressAscpFfoItemQueryResult.go
37 lines (32 loc) · 1.19 KB
/
AliexpressAscpFfoItemQueryResult.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 ascpffo
import (
"sync"
)
// AliexpressAscpFfoItemQueryResult 结构体
type AliexpressAscpFfoItemQueryResult struct {
// dto
DataList []AliexpressAscpFfoItemQueryData `json:"data_list,omitempty" xml:"data_list>aliexpress_ascp_ffo_item_query_data,omitempty"`
// 错误码
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 错误信息
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAliexpressAscpFfoItemQueryResult = sync.Pool{
New: func() any {
return new(AliexpressAscpFfoItemQueryResult)
},
}
// GetAliexpressAscpFfoItemQueryResult() 从对象池中获取AliexpressAscpFfoItemQueryResult
func GetAliexpressAscpFfoItemQueryResult() *AliexpressAscpFfoItemQueryResult {
return poolAliexpressAscpFfoItemQueryResult.Get().(*AliexpressAscpFfoItemQueryResult)
}
// ReleaseAliexpressAscpFfoItemQueryResult 释放AliexpressAscpFfoItemQueryResult
func ReleaseAliexpressAscpFfoItemQueryResult(v *AliexpressAscpFfoItemQueryResult) {
v.DataList = v.DataList[:0]
v.ErrorCode = ""
v.ErrorMsg = ""
v.Success = false
poolAliexpressAscpFfoItemQueryResult.Put(v)
}