-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaWdkMerchantRoutingRegisterApiResult.go
37 lines (32 loc) · 1.3 KB
/
AlibabaWdkMerchantRoutingRegisterApiResult.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 wdk
import (
"sync"
)
// AlibabaWdkMerchantRoutingRegisterApiResult 结构体
type AlibabaWdkMerchantRoutingRegisterApiResult struct {
// 调用接口错误信息
ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
// 调用接口错误码
ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
// 调用结果返回成功失败
Model bool `json:"model,omitempty" xml:"model,omitempty"`
// 调用接口成功失败
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAlibabaWdkMerchantRoutingRegisterApiResult = sync.Pool{
New: func() any {
return new(AlibabaWdkMerchantRoutingRegisterApiResult)
},
}
// GetAlibabaWdkMerchantRoutingRegisterApiResult() 从对象池中获取AlibabaWdkMerchantRoutingRegisterApiResult
func GetAlibabaWdkMerchantRoutingRegisterApiResult() *AlibabaWdkMerchantRoutingRegisterApiResult {
return poolAlibabaWdkMerchantRoutingRegisterApiResult.Get().(*AlibabaWdkMerchantRoutingRegisterApiResult)
}
// ReleaseAlibabaWdkMerchantRoutingRegisterApiResult 释放AlibabaWdkMerchantRoutingRegisterApiResult
func ReleaseAlibabaWdkMerchantRoutingRegisterApiResult(v *AlibabaWdkMerchantRoutingRegisterApiResult) {
v.ErrMsg = ""
v.ErrCode = ""
v.Model = false
v.Success = false
poolAlibabaWdkMerchantRoutingRegisterApiResult.Put(v)
}