-
Notifications
You must be signed in to change notification settings - Fork 9
/
AeopFreightCalculateForBuyerDto.go
49 lines (44 loc) · 1.63 KB
/
AeopFreightCalculateForBuyerDto.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
package aedropshiper
import (
"sync"
)
// AeopFreightCalculateForBuyerDto 结构体
type AeopFreightCalculateForBuyerDto struct {
// 城市编码
CityCode string `json:"city_code,omitempty" xml:"city_code,omitempty"`
// 国家编码
CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
// 省份编码
ProvinceCode string `json:"province_code,omitempty" xml:"province_code,omitempty"`
// 发货国家
SendGoodsCountryCode string `json:"send_goods_country_code,omitempty" xml:"send_goods_country_code,omitempty"`
// 商品价格
Price string `json:"price,omitempty" xml:"price,omitempty"`
// 商品价格币种
PriceCurrency string `json:"price_currency,omitempty" xml:"price_currency,omitempty"`
// 商品ID
ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
// 商品数量
ProductNum int64 `json:"product_num,omitempty" xml:"product_num,omitempty"`
}
var poolAeopFreightCalculateForBuyerDto = sync.Pool{
New: func() any {
return new(AeopFreightCalculateForBuyerDto)
},
}
// GetAeopFreightCalculateForBuyerDto() 从对象池中获取AeopFreightCalculateForBuyerDto
func GetAeopFreightCalculateForBuyerDto() *AeopFreightCalculateForBuyerDto {
return poolAeopFreightCalculateForBuyerDto.Get().(*AeopFreightCalculateForBuyerDto)
}
// ReleaseAeopFreightCalculateForBuyerDto 释放AeopFreightCalculateForBuyerDto
func ReleaseAeopFreightCalculateForBuyerDto(v *AeopFreightCalculateForBuyerDto) {
v.CityCode = ""
v.CountryCode = ""
v.ProvinceCode = ""
v.SendGoodsCountryCode = ""
v.Price = ""
v.PriceCurrency = ""
v.ProductId = 0
v.ProductNum = 0
poolAeopFreightCalculateForBuyerDto.Put(v)
}