-
Notifications
You must be signed in to change notification settings - Fork 9
/
AliexpressUsergrowthRecommendItemsGetResult.go
37 lines (32 loc) · 1.53 KB
/
AliexpressUsergrowthRecommendItemsGetResult.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 aeusergrowth
import (
"sync"
)
// AliexpressUsergrowthRecommendItemsGetResult 结构体
type AliexpressUsergrowthRecommendItemsGetResult struct {
// Result itemList,The product are located at the top,maybe null when success = false
DataList []AliexpressUsergrowthRecommendItemsGetData `json:"data_list,omitempty" xml:"data_list>aliexpress_usergrowth_recommend_items_get_data,omitempty"`
// other extend message
Message string `json:"message,omitempty" xml:"message,omitempty"`
// Code is used to determine whether the result is correct
Code string `json:"code,omitempty" xml:"code,omitempty"`
// success is used to determine whether invoke service success
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAliexpressUsergrowthRecommendItemsGetResult = sync.Pool{
New: func() any {
return new(AliexpressUsergrowthRecommendItemsGetResult)
},
}
// GetAliexpressUsergrowthRecommendItemsGetResult() 从对象池中获取AliexpressUsergrowthRecommendItemsGetResult
func GetAliexpressUsergrowthRecommendItemsGetResult() *AliexpressUsergrowthRecommendItemsGetResult {
return poolAliexpressUsergrowthRecommendItemsGetResult.Get().(*AliexpressUsergrowthRecommendItemsGetResult)
}
// ReleaseAliexpressUsergrowthRecommendItemsGetResult 释放AliexpressUsergrowthRecommendItemsGetResult
func ReleaseAliexpressUsergrowthRecommendItemsGetResult(v *AliexpressUsergrowthRecommendItemsGetResult) {
v.DataList = v.DataList[:0]
v.Message = ""
v.Code = ""
v.Success = false
poolAliexpressUsergrowthRecommendItemsGetResult.Put(v)
}