-
Notifications
You must be signed in to change notification settings - Fork 9
/
WaybillCloudPrintWithResultDescResponse.go
40 lines (35 loc) · 1.46 KB
/
WaybillCloudPrintWithResultDescResponse.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 waybill
import (
"sync"
)
// WaybillCloudPrintWithResultDescResponse 结构体
type WaybillCloudPrintWithResultDescResponse struct {
// 单查询错误code
ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
// 单查询错误message
ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
// 请求id
ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
// 面单信息
WaybillCloudPrintResponse *WaybillCloudPrintResponse `json:"waybill_cloud_print_response,omitempty" xml:"waybill_cloud_print_response,omitempty"`
// 是否查询
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolWaybillCloudPrintWithResultDescResponse = sync.Pool{
New: func() any {
return new(WaybillCloudPrintWithResultDescResponse)
},
}
// GetWaybillCloudPrintWithResultDescResponse() 从对象池中获取WaybillCloudPrintWithResultDescResponse
func GetWaybillCloudPrintWithResultDescResponse() *WaybillCloudPrintWithResultDescResponse {
return poolWaybillCloudPrintWithResultDescResponse.Get().(*WaybillCloudPrintWithResultDescResponse)
}
// ReleaseWaybillCloudPrintWithResultDescResponse 释放WaybillCloudPrintWithResultDescResponse
func ReleaseWaybillCloudPrintWithResultDescResponse(v *WaybillCloudPrintWithResultDescResponse) {
v.ErrorCode = ""
v.ErrorMessage = ""
v.ObjectId = ""
v.WaybillCloudPrintResponse = nil
v.Success = false
poolWaybillCloudPrintWithResultDescResponse.Put(v)
}