init: web_hgdjc_server
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"videoweb/pub/models/playlettopicgroupmod"
|
||||
"videoweb/pub/pubdef"
|
||||
)
|
||||
|
||||
// PlayletTopicGroupListReq 专题区块列表请求
|
||||
type PlayletTopicGroupListReq struct {
|
||||
pubdef.Page // 分页参数
|
||||
Status *bool `form:"status"` // 是否启用,不传则查询全部
|
||||
}
|
||||
|
||||
// PlayletTopicGroupListResp 专题区块列表响应
|
||||
type PlayletTopicGroupListResp struct {
|
||||
TotalCount int64 `json:"totalCount"` // 符合条件的区块总数
|
||||
PageNum int `json:"pageNum"` // 当前页码
|
||||
PageSize int `json:"pageSize"` // 每页数量
|
||||
List playlettopicgroupmod.PlayletTopicGroupList `json:"list"` // 专题区块列表
|
||||
}
|
||||
|
||||
// PlayletTopicGroupAddReq 新增专题区块请求
|
||||
type PlayletTopicGroupAddReq struct {
|
||||
Name string `json:"name" binding:"required"` // 专题区块名称
|
||||
Desc string `json:"desc"` // 专题区块描述
|
||||
TopicIds []int64 `json:"topicIds"` // 专题ID顺序即展示顺序
|
||||
Rank int64 `json:"rank"` // 区块排序,越大越靠前
|
||||
Status *bool `json:"status" binding:"required"` // 是否启用
|
||||
}
|
||||
|
||||
// PlayletTopicGroupAddResp 新增专题区块响应
|
||||
type PlayletTopicGroupAddResp struct {
|
||||
Id int64 `json:"id"` // 新增的专题区块ID
|
||||
}
|
||||
|
||||
// PlayletTopicGroupUpdateReq 更新专题区块请求
|
||||
type PlayletTopicGroupUpdateReq struct {
|
||||
Id int64 `json:"id" binding:"required"` // 专题区块ID
|
||||
Name *string `json:"name"` // 专题区块名称,不传则不修改
|
||||
Desc *string `json:"desc"` // 专题区块描述,不传则不修改
|
||||
TopicIds *[]int64 `json:"topicIds"` // 专题ID集合,数组顺序即展示顺序,不传则不修改
|
||||
Rank *int64 `json:"rank"` // 区块排序,越大越靠前,不传则不修改
|
||||
Status *bool `json:"status"` // 是否启用,不传则不修改
|
||||
}
|
||||
|
||||
// PlayletTopicGroupDeleteReq 删除专题区块请求
|
||||
type PlayletTopicGroupDeleteReq struct {
|
||||
Id int64 `json:"id" binding:"required"` // 待删除的专题区块ID
|
||||
}
|
||||
Reference in New Issue
Block a user