-
Notifications
You must be signed in to change notification settings - Fork 9
/
MaochaoOrderInsuranceQueryResult.go
37 lines (32 loc) · 1.14 KB
/
MaochaoOrderInsuranceQueryResult.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"
)
// MaochaoOrderInsuranceQueryResult 结构体
type MaochaoOrderInsuranceQueryResult struct {
// 返回码说明
ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
// 返回码
ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
// 返回结果
Model *InsuranceOrder `json:"model,omitempty" xml:"model,omitempty"`
// 是否调用成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolMaochaoOrderInsuranceQueryResult = sync.Pool{
New: func() any {
return new(MaochaoOrderInsuranceQueryResult)
},
}
// GetMaochaoOrderInsuranceQueryResult() 从对象池中获取MaochaoOrderInsuranceQueryResult
func GetMaochaoOrderInsuranceQueryResult() *MaochaoOrderInsuranceQueryResult {
return poolMaochaoOrderInsuranceQueryResult.Get().(*MaochaoOrderInsuranceQueryResult)
}
// ReleaseMaochaoOrderInsuranceQueryResult 释放MaochaoOrderInsuranceQueryResult
func ReleaseMaochaoOrderInsuranceQueryResult(v *MaochaoOrderInsuranceQueryResult) {
v.ReturnMsg = ""
v.ReturnCode = ""
v.Model = nil
v.Success = false
poolMaochaoOrderInsuranceQueryResult.Put(v)
}