-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoKoubeiMallCommonStoreDetailQueryResult.go
37 lines (32 loc) · 1.36 KB
/
TaobaoKoubeiMallCommonStoreDetailQueryResult.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 koubeimall
import (
"sync"
)
// TaobaoKoubeiMallCommonStoreDetailQueryResult 结构体
type TaobaoKoubeiMallCommonStoreDetailQueryResult struct {
// API请求全链路追踪ID
TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
// 返回门店详情模型
Data *StoreDetailDto `json:"data,omitempty" xml:"data,omitempty"`
// 错误信息,success=false时,返回相关错误信息
Error *TribeError `json:"error,omitempty" xml:"error,omitempty"`
// 是否成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolTaobaoKoubeiMallCommonStoreDetailQueryResult = sync.Pool{
New: func() any {
return new(TaobaoKoubeiMallCommonStoreDetailQueryResult)
},
}
// GetTaobaoKoubeiMallCommonStoreDetailQueryResult() 从对象池中获取TaobaoKoubeiMallCommonStoreDetailQueryResult
func GetTaobaoKoubeiMallCommonStoreDetailQueryResult() *TaobaoKoubeiMallCommonStoreDetailQueryResult {
return poolTaobaoKoubeiMallCommonStoreDetailQueryResult.Get().(*TaobaoKoubeiMallCommonStoreDetailQueryResult)
}
// ReleaseTaobaoKoubeiMallCommonStoreDetailQueryResult 释放TaobaoKoubeiMallCommonStoreDetailQueryResult
func ReleaseTaobaoKoubeiMallCommonStoreDetailQueryResult(v *TaobaoKoubeiMallCommonStoreDetailQueryResult) {
v.TraceId = ""
v.Data = nil
v.Error = nil
v.Success = false
poolTaobaoKoubeiMallCommonStoreDetailQueryResult.Put(v)
}