Skip to content

Commit 4565e9a

Browse files
committed
Merge branch 'release/v1.8.3'
2 parents 58f1ba5 + 339e469 commit 4565e9a

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

model/page/list_request.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ import "encoding/json"
66
type ListRequest struct {
77
// AdvertiserID 广告主 ID,在获取 access_token 的时候返回
88
AdvertiserID int64 `json:"advertiser_id,omitempty"`
9-
// ViewComps 包含的组件类型, 多个类型之间是或的关系,0: 图片;1: 文本;2: 表单;3: 按钮;4: 轮播图;5: 视频;6: 地图;7: 应用下载;16: 空白组件;34:小游戏
10-
ViewComps []int `json:"view_comps,omitempty"`
9+
// PageComponentType 落地页组件类型 34: 微信小游戏; 35:微信小程序
10+
PageComponentType []int `json:"page_component_type,omitempty"`
1111
// PageName 落地页名称
1212
PageName string `json:"page_name,omitempty"`
13-
// PageType 落地页类型,1 表示联盟,非 1 现在都是主站
14-
PageType int `json:"page_type,omitempty"`
13+
// ViewComps 包含的组件类型, 多个类型之间是或的关系,0: 图片;1: 文本;2: 表单;3: 按钮;4: 轮播图;5: 视频;6: 地图;7: 应用下载;16: 空白组件;34:小游戏
14+
ViewComps []int `json:"view_comps,omitempty"`
15+
// ComponentRefIDs 组件中线索通ID(如:小游戏ID),和view_comps类型对应,如:查询含有小游戏id的落地页,view_comps=34;component_ref_ids=123
16+
ComponentRefIDs []int64 `json:"component_ref_ids,omitempty"`
1517
// FictionIDs 小说 ID 列表,仅对小说行业可选
1618
FictionIDs []string `json:"fiction_ids,omitempty"`
19+
// IsPageGroup 是否可创建程序化落地页组,仅对查询可创建程序化的落地页列表有效
20+
IsPageGroup bool `json:"is_page_group,omitempty"`
1721
// Page 查询的页码数,默认为 1
1822
Page int `json:"page,omitempty"`
1923
// PageSize 单页行数,默认为 20,不超过 500
2024
PageSize int `json:"page_size,omitempty"`
21-
// ComponentRefIDs 组件中线索通ID(如:小游戏ID),和view_comps类型对应,如:查询含有小游戏id的落地页,view_comps=34;component_ref_ids=123
22-
ComponentRefIDs []int64 `json:"component_ref_ids,omitempty"`
23-
// IsPageGroup 是否可创建程序化落地页组,仅对查询可创建程序化的落地页列表有效
24-
IsPageGroup bool `json:"is_page_group,omitempty"`
2525
// Select 支持落地页名称模糊查询,落地页ID精准查询,和字段page_name不能同时生效
2626
Select string `json:"select,omitempty"`
2727
}

model/page/page.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ package page
44
type Page struct {
55
// ID 落地页 ID
66
ID int64 `json:"id,omitempty"`
7-
// Comps 落地页包含的组件列表
8-
Comps []Component `json:"comps,omitempty"`
97
// URL 落地页 URL
108
URL string `json:"url,omitempty"`
9+
// Type 组件类型
10+
Type int `json:"type,omitempty"`
11+
// Name 组件名称
12+
Name string `json:"name,omitempty"`
13+
// PageComponentType 落地页组件类型 34: 微信小游戏; 35:微信小程序
14+
PageComponentType []int `json:"page_component_type,omitempty"`
15+
// AuditStatus 审核状态:1 草稿 ,2 审核中,3 审核通过,4 审核拒绝
16+
AuditStatus int `json:"audit_status,omitempty"`
1117
// FictionID 落地页绑定的小说 ID
1218
FictionID int64 `json:"fiction_id,omitempty"`
1319
// BizType 落地页类型,0:站内;1:联盟;2:站内&联盟通投
@@ -24,6 +30,8 @@ type Page struct {
2430
Details interface{} `json:"details,omitempty"`
2531
// CoverImgUrl 落地页封面图
2632
CoverImgUrl string `json:"cover_img_url,omitempty"`
33+
// Comps 落地页包含的组件列表
34+
Comps []Component `json:"comps,omitempty"`
2735
}
2836

2937
// Component 落地页包含的组件
@@ -34,6 +42,8 @@ type Component struct {
3442
Type int `json:"type,omitempty"`
3543
// Name 组件名称
3644
Name string `json:"name,omitempty"`
45+
// SubType 组件子类型
46+
SubType int `json:"sub_type,omitempty"`
3747
// Props 组件属性,仅当 Type 为 7 时有用, 其他类型没有这个属性
3848
Props map[string]interface{} `json:"props,omitempty"`
3949
// WechatGameID 小游戏类型对应的 ID,Type 为 34 时有用

0 commit comments

Comments
 (0)