-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaSscSupplyplatformServiceInventoryQueryResult.go
40 lines (35 loc) · 1.62 KB
/
AlibabaSscSupplyplatformServiceInventoryQueryResult.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
38
39
40
package tmallservice
import (
"sync"
)
// AlibabaSscSupplyplatformServiceInventoryQueryResult 结构体
type AlibabaSscSupplyplatformServiceInventoryQueryResult struct {
// json字符串。key是时间片,格式为yyyy-MM-dd或yyyy-MM-dd HH:mm-HH:mm,value是当前库存值
Value string `json:"value,omitempty" xml:"value,omitempty"`
// 错误码
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 错误信息
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// 对外展示的错误信息
DisplayMsg string `json:"display_msg,omitempty" xml:"display_msg,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAlibabaSscSupplyplatformServiceInventoryQueryResult = sync.Pool{
New: func() any {
return new(AlibabaSscSupplyplatformServiceInventoryQueryResult)
},
}
// GetAlibabaSscSupplyplatformServiceInventoryQueryResult() 从对象池中获取AlibabaSscSupplyplatformServiceInventoryQueryResult
func GetAlibabaSscSupplyplatformServiceInventoryQueryResult() *AlibabaSscSupplyplatformServiceInventoryQueryResult {
return poolAlibabaSscSupplyplatformServiceInventoryQueryResult.Get().(*AlibabaSscSupplyplatformServiceInventoryQueryResult)
}
// ReleaseAlibabaSscSupplyplatformServiceInventoryQueryResult 释放AlibabaSscSupplyplatformServiceInventoryQueryResult
func ReleaseAlibabaSscSupplyplatformServiceInventoryQueryResult(v *AlibabaSscSupplyplatformServiceInventoryQueryResult) {
v.Value = ""
v.ErrorCode = ""
v.ErrorMsg = ""
v.DisplayMsg = ""
v.Success = false
poolAlibabaSscSupplyplatformServiceInventoryQueryResult.Put(v)
}