-
Notifications
You must be signed in to change notification settings - Fork 12
/
C2MConsensusDemandParamDto.go
46 lines (41 loc) · 1.41 KB
/
C2MConsensusDemandParamDto.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
package tmallgeniescp
import (
"sync"
)
// C2MConsensusDemandParamDto 结构体
type C2MConsensusDemandParamDto struct {
// 关键日期值
KeyFigureDate string `json:"key_figure_date,omitempty" xml:"key_figure_date,omitempty"`
// c2m需求数量
C2mConsensusDemand string `json:"c2m_consensus_demand,omitempty" xml:"c2m_consensus_demand,omitempty"`
// 渠道ID
CustId string `json:"cust_id,omitempty" xml:"cust_id,omitempty"`
// 物料ID
PrdId string `json:"prd_id,omitempty" xml:"prd_id,omitempty"`
// 扩展参数
ExtendJson string `json:"extend_json,omitempty" xml:"extend_json,omitempty"`
// 租户
Tenant string `json:"tenant,omitempty" xml:"tenant,omitempty"`
// c2m分配数量
C2mQuantity string `json:"c2m_quantity,omitempty" xml:"c2m_quantity,omitempty"`
}
var poolC2MConsensusDemandParamDto = sync.Pool{
New: func() any {
return new(C2MConsensusDemandParamDto)
},
}
// GetC2MConsensusDemandParamDto() 从对象池中获取C2MConsensusDemandParamDto
func GetC2MConsensusDemandParamDto() *C2MConsensusDemandParamDto {
return poolC2MConsensusDemandParamDto.Get().(*C2MConsensusDemandParamDto)
}
// ReleaseC2MConsensusDemandParamDto 释放C2MConsensusDemandParamDto
func ReleaseC2MConsensusDemandParamDto(v *C2MConsensusDemandParamDto) {
v.KeyFigureDate = ""
v.C2mConsensusDemand = ""
v.CustId = ""
v.PrdId = ""
v.ExtendJson = ""
v.Tenant = ""
v.C2mQuantity = ""
poolC2MConsensusDemandParamDto.Put(v)
}