-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoFeedflowItemAdgroupAdzonePageResultDto.go
37 lines (32 loc) · 1.41 KB
/
TaobaoFeedflowItemAdgroupAdzonePageResultDto.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
package feedflow
import (
"sync"
)
// TaobaoFeedflowItemAdgroupAdzonePageResultDto 结构体
type TaobaoFeedflowItemAdgroupAdzonePageResultDto struct {
// 广告位列表
AdzoneBindList []AdzoneBindDto `json:"adzone_bind_list,omitempty" xml:"adzone_bind_list>adzone_bind_dto,omitempty"`
// 返回消息
Message string `json:"message,omitempty" xml:"message,omitempty"`
// 广告位总数
TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
// 调用是否成功,true-成功,false-失败
Success bool `json:"success,omitempty" xml:"success,omitempty"`
}
var poolTaobaoFeedflowItemAdgroupAdzonePageResultDto = sync.Pool{
New: func() any {
return new(TaobaoFeedflowItemAdgroupAdzonePageResultDto)
},
}
// GetTaobaoFeedflowItemAdgroupAdzonePageResultDto() 从对象池中获取TaobaoFeedflowItemAdgroupAdzonePageResultDto
func GetTaobaoFeedflowItemAdgroupAdzonePageResultDto() *TaobaoFeedflowItemAdgroupAdzonePageResultDto {
return poolTaobaoFeedflowItemAdgroupAdzonePageResultDto.Get().(*TaobaoFeedflowItemAdgroupAdzonePageResultDto)
}
// ReleaseTaobaoFeedflowItemAdgroupAdzonePageResultDto 释放TaobaoFeedflowItemAdgroupAdzonePageResultDto
func ReleaseTaobaoFeedflowItemAdgroupAdzonePageResultDto(v *TaobaoFeedflowItemAdgroupAdzonePageResultDto) {
v.AdzoneBindList = v.AdzoneBindList[:0]
v.Message = ""
v.TotalCount = 0
v.Success = false
poolTaobaoFeedflowItemAdgroupAdzonePageResultDto.Put(v)
}