-
Notifications
You must be signed in to change notification settings - Fork 12
/
AlibabaLstIcStockItemsUpdateResult.go
37 lines (32 loc) · 1.21 KB
/
AlibabaLstIcStockItemsUpdateResult.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 lstwarehouse
import (
"sync"
)
// AlibabaLstIcStockItemsUpdateResult 结构体
type AlibabaLstIcStockItemsUpdateResult struct {
// 列表
ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"`
// errorMsg
ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
// 错误码
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAlibabaLstIcStockItemsUpdateResult = sync.Pool{
New: func() any {
return new(AlibabaLstIcStockItemsUpdateResult)
},
}
// GetAlibabaLstIcStockItemsUpdateResult() 从对象池中获取AlibabaLstIcStockItemsUpdateResult
func GetAlibabaLstIcStockItemsUpdateResult() *AlibabaLstIcStockItemsUpdateResult {
return poolAlibabaLstIcStockItemsUpdateResult.Get().(*AlibabaLstIcStockItemsUpdateResult)
}
// ReleaseAlibabaLstIcStockItemsUpdateResult 释放AlibabaLstIcStockItemsUpdateResult
func ReleaseAlibabaLstIcStockItemsUpdateResult(v *AlibabaLstIcStockItemsUpdateResult) {
v.ContentList = v.ContentList[:0]
v.ErrorMessage = ""
v.ErrorCode = ""
v.Success = false
poolAlibabaLstIcStockItemsUpdateResult.Put(v)
}