-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaTradeAlianceCreateResultModel.go
46 lines (41 loc) · 1.54 KB
/
AlibabaTradeAlianceCreateResultModel.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
41
42
43
44
45
46
package trade
import (
"sync"
)
// AlibabaTradeAlianceCreateResultModel 结构体
type AlibabaTradeAlianceCreateResultModel struct {
// errorCode
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// errorMsg
ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
// 创建时间
GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
// 修改时间
GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
// 生成的订单号i
MainOrderId string `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
// totalAmount
TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
// 是否创建成功
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolAlibabaTradeAlianceCreateResultModel = sync.Pool{
New: func() any {
return new(AlibabaTradeAlianceCreateResultModel)
},
}
// GetAlibabaTradeAlianceCreateResultModel() 从对象池中获取AlibabaTradeAlianceCreateResultModel
func GetAlibabaTradeAlianceCreateResultModel() *AlibabaTradeAlianceCreateResultModel {
return poolAlibabaTradeAlianceCreateResultModel.Get().(*AlibabaTradeAlianceCreateResultModel)
}
// ReleaseAlibabaTradeAlianceCreateResultModel 释放AlibabaTradeAlianceCreateResultModel
func ReleaseAlibabaTradeAlianceCreateResultModel(v *AlibabaTradeAlianceCreateResultModel) {
v.ErrorCode = ""
v.ErrorMsg = ""
v.GmtCreate = ""
v.GmtModified = ""
v.MainOrderId = ""
v.TotalAmount = 0
v.Success = false
poolAlibabaTradeAlianceCreateResultModel.Put(v)
}