-
Notifications
You must be signed in to change notification settings - Fork 9
/
BusoMainOrderHistoryPageVo.go
34 lines (29 loc) · 1.14 KB
/
BusoMainOrderHistoryPageVo.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
package bus
import (
"sync"
)
// BusoMainOrderHistoryPageVo 结构体
type BusoMainOrderHistoryPageVo struct {
// busoMainOrderHistoryVOList
BusoMainOrderHistoryVOList []Busomainorderhistoryvolist `json:"buso_main_order_history_v_o_list,omitempty" xml:"buso_main_order_history_v_o_list>busomainorderhistoryvolist,omitempty"`
// currentPage 当前多少页
CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
// totalSize 总条目
TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"`
}
var poolBusoMainOrderHistoryPageVo = sync.Pool{
New: func() any {
return new(BusoMainOrderHistoryPageVo)
},
}
// GetBusoMainOrderHistoryPageVo() 从对象池中获取BusoMainOrderHistoryPageVo
func GetBusoMainOrderHistoryPageVo() *BusoMainOrderHistoryPageVo {
return poolBusoMainOrderHistoryPageVo.Get().(*BusoMainOrderHistoryPageVo)
}
// ReleaseBusoMainOrderHistoryPageVo 释放BusoMainOrderHistoryPageVo
func ReleaseBusoMainOrderHistoryPageVo(v *BusoMainOrderHistoryPageVo) {
v.BusoMainOrderHistoryVOList = v.BusoMainOrderHistoryVOList[:0]
v.CurrentPage = 0
v.TotalSize = 0
poolBusoMainOrderHistoryPageVo.Put(v)
}