-
Notifications
You must be signed in to change notification settings - Fork 9
/
CreateLogisticsOrderRequest.go
52 lines (47 loc) · 1.81 KB
/
CreateLogisticsOrderRequest.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
47
48
49
50
51
52
package tmallsc
import (
"sync"
)
// CreateLogisticsOrderRequest 结构体
type CreateLogisticsOrderRequest struct {
// 外部单据id
OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
// STAGE1:一阶段物流 STAGE2:二阶段物流
Type string `json:"type,omitempty" xml:"type,omitempty"`
// 逗号分隔的工单id列表
WorkcardIds string `json:"workcard_ids,omitempty" xml:"workcard_ids,omitempty"`
// 快递单号
MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
// 快递公司
CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
// 目的地四级地址编码
ToAddressLocation string `json:"to_address_location,omitempty" xml:"to_address_location,omitempty"`
// 目的地详细地址
ToAddressDetail string `json:"to_address_detail,omitempty" xml:"to_address_detail,omitempty"`
// 取件四级地址编码
FromAddressLocation string `json:"from_address_location,omitempty" xml:"from_address_location,omitempty"`
// 取件详细地址
FromAddressDetail string `json:"from_address_detail,omitempty" xml:"from_address_detail,omitempty"`
}
var poolCreateLogisticsOrderRequest = sync.Pool{
New: func() any {
return new(CreateLogisticsOrderRequest)
},
}
// GetCreateLogisticsOrderRequest() 从对象池中获取CreateLogisticsOrderRequest
func GetCreateLogisticsOrderRequest() *CreateLogisticsOrderRequest {
return poolCreateLogisticsOrderRequest.Get().(*CreateLogisticsOrderRequest)
}
// ReleaseCreateLogisticsOrderRequest 释放CreateLogisticsOrderRequest
func ReleaseCreateLogisticsOrderRequest(v *CreateLogisticsOrderRequest) {
v.OuterId = ""
v.Type = ""
v.WorkcardIds = ""
v.MailNo = ""
v.CompanyName = ""
v.ToAddressLocation = ""
v.ToAddressDetail = ""
v.FromAddressLocation = ""
v.FromAddressDetail = ""
poolCreateLogisticsOrderRequest.Put(v)
}