-
Notifications
You must be signed in to change notification settings - Fork 9
/
PromotionFacadeOpenReq.go
52 lines (47 loc) · 1.65 KB
/
PromotionFacadeOpenReq.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
50
51
52
package alsc
import (
"sync"
)
// PromotionFacadeOpenReq 结构体
type PromotionFacadeOpenReq struct {
// STATUS_NEW,STATUS_WORKING,STATUS_SUSPEND,STATUS_END,STATUS_EXPIRED,未投放,执行中,已暂停,已终止,已终止
StatusList []string `json:"status_list,omitempty" xml:"status_list>string,omitempty"`
// 品牌ID
BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
// 最后修改时间
GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
// 外部品牌ID
OutBrandId string `json:"out_brand_id,omitempty" xml:"out_brand_id,omitempty"`
// 最后时间
LastId string `json:"last_id,omitempty" xml:"last_id,omitempty"`
// 促销ID
PromotionId string `json:"promotion_id,omitempty" xml:"promotion_id,omitempty"`
// 第几页,从1开始计数
PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
// 每页大小,默认20
PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
// 1
Deleted bool `json:"deleted,omitempty" xml:"deleted,omitempty"`
}
var poolPromotionFacadeOpenReq = sync.Pool{
New: func() any {
return new(PromotionFacadeOpenReq)
},
}
// GetPromotionFacadeOpenReq() 从对象池中获取PromotionFacadeOpenReq
func GetPromotionFacadeOpenReq() *PromotionFacadeOpenReq {
return poolPromotionFacadeOpenReq.Get().(*PromotionFacadeOpenReq)
}
// ReleasePromotionFacadeOpenReq 释放PromotionFacadeOpenReq
func ReleasePromotionFacadeOpenReq(v *PromotionFacadeOpenReq) {
v.StatusList = v.StatusList[:0]
v.BrandId = ""
v.GmtModified = ""
v.OutBrandId = ""
v.LastId = ""
v.PromotionId = ""
v.PageNo = 0
v.PageSize = 0
v.Deleted = false
poolPromotionFacadeOpenReq.Put(v)
}