-
Notifications
You must be signed in to change notification settings - Fork 10
/
C2MConsensusDemandRequest.go
31 lines (26 loc) · 1.05 KB
/
C2MConsensusDemandRequest.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
package tmallgeniescp
import (
"sync"
)
// C2MConsensusDemandRequest 结构体
type C2MConsensusDemandRequest struct {
// 对象
C2MConsensusDemandParamDTOList []C2MConsensusDemandParamDto `json:"c2_m_consensus_demand_param_d_t_o_list,omitempty" xml:"c2_m_consensus_demand_param_d_t_o_list>c2m_consensus_demand_param_dto,omitempty"`
// 扩展参数
RequestExtendJson string `json:"request_extend_json,omitempty" xml:"request_extend_json,omitempty"`
}
var poolC2MConsensusDemandRequest = sync.Pool{
New: func() any {
return new(C2MConsensusDemandRequest)
},
}
// GetC2MConsensusDemandRequest() 从对象池中获取C2MConsensusDemandRequest
func GetC2MConsensusDemandRequest() *C2MConsensusDemandRequest {
return poolC2MConsensusDemandRequest.Get().(*C2MConsensusDemandRequest)
}
// ReleaseC2MConsensusDemandRequest 释放C2MConsensusDemandRequest
func ReleaseC2MConsensusDemandRequest(v *C2MConsensusDemandRequest) {
v.C2MConsensusDemandParamDTOList = v.C2MConsensusDemandParamDTOList[:0]
v.RequestExtendJson = ""
poolC2MConsensusDemandRequest.Put(v)
}