-
Notifications
You must be signed in to change notification settings - Fork 10
/
SupplierFeedbackDto.go
49 lines (44 loc) · 1.43 KB
/
SupplierFeedbackDto.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 tmallgeniescp
import (
"sync"
)
// SupplierFeedbackDto 结构体
type SupplierFeedbackDto struct {
// 扩展参数
ExtendJson string `json:"extend_json,omitempty" xml:"extend_json,omitempty"`
// 租户
Tenant string `json:"tenant,omitempty" xml:"tenant,omitempty"`
// 关键值日期
KeyFigureDate string `json:"key_figure_date,omitempty" xml:"key_figure_date,omitempty"`
// 承诺反馈数量
CommitQty string `json:"commit_qty,omitempty" xml:"commit_qty,omitempty"`
// 地点
LocId string `json:"loc_id,omitempty" xml:"loc_id,omitempty"`
// 物料号
PrdId string `json:"prd_id,omitempty" xml:"prd_id,omitempty"`
// 地点 - 二级物料供应商
LocationCode string `json:"location_code,omitempty" xml:"location_code,omitempty"`
// 地点 - 采购分仓目的loc
LocationCodeTo string `json:"location_code_to,omitempty" xml:"location_code_to,omitempty"`
}
var poolSupplierFeedbackDto = sync.Pool{
New: func() any {
return new(SupplierFeedbackDto)
},
}
// GetSupplierFeedbackDto() 从对象池中获取SupplierFeedbackDto
func GetSupplierFeedbackDto() *SupplierFeedbackDto {
return poolSupplierFeedbackDto.Get().(*SupplierFeedbackDto)
}
// ReleaseSupplierFeedbackDto 释放SupplierFeedbackDto
func ReleaseSupplierFeedbackDto(v *SupplierFeedbackDto) {
v.ExtendJson = ""
v.Tenant = ""
v.KeyFigureDate = ""
v.CommitQty = ""
v.LocId = ""
v.PrdId = ""
v.LocationCode = ""
v.LocationCodeTo = ""
poolSupplierFeedbackDto.Put(v)
}