-
Notifications
You must be signed in to change notification settings - Fork 9
/
Wdkopenpurchasepricesubs.go
43 lines (38 loc) · 1.37 KB
/
Wdkopenpurchasepricesubs.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
package wdk
import (
"sync"
)
// Wdkopenpurchasepricesubs 结构体
type Wdkopenpurchasepricesubs struct {
// 确认标识,0:核对 1:确认,必填
Confirm string `json:"confirm,omitempty" xml:"confirm,omitempty"`
// 去税采购价,单位分,必填
PriceWithoutTax string `json:"price_without_tax,omitempty" xml:"price_without_tax,omitempty"`
// 含税采购价,单位分,必填
PriceWithTax string `json:"price_with_tax,omitempty" xml:"price_with_tax,omitempty"`
// 税率,必填
TaxRate string `json:"tax_rate,omitempty" xml:"tax_rate,omitempty"`
// 商品编码,必填
SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
// 淘系子订单号,必填
TbSubOrderId string `json:"tb_sub_order_id,omitempty" xml:"tb_sub_order_id,omitempty"`
}
var poolWdkopenpurchasepricesubs = sync.Pool{
New: func() any {
return new(Wdkopenpurchasepricesubs)
},
}
// GetWdkopenpurchasepricesubs() 从对象池中获取Wdkopenpurchasepricesubs
func GetWdkopenpurchasepricesubs() *Wdkopenpurchasepricesubs {
return poolWdkopenpurchasepricesubs.Get().(*Wdkopenpurchasepricesubs)
}
// ReleaseWdkopenpurchasepricesubs 释放Wdkopenpurchasepricesubs
func ReleaseWdkopenpurchasepricesubs(v *Wdkopenpurchasepricesubs) {
v.Confirm = ""
v.PriceWithoutTax = ""
v.PriceWithTax = ""
v.TaxRate = ""
v.SkuCode = ""
v.TbSubOrderId = ""
poolWdkopenpurchasepricesubs.Put(v)
}