Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
40 lines
1.9 KiB
Go
40 lines
1.9 KiB
Go
package srv_videotopic
|
|
|
|
import (
|
|
"time"
|
|
"videoweb/pub/models/videoinformationmod"
|
|
"videoweb/pub/models/videotopicmod"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type VideoTopicReq struct {
|
|
VideoCategoryId *int64 `json:"videoCategoryId" bson:"videoCategoryId"`
|
|
pubdef.Page
|
|
}
|
|
type VideoTopicResp struct {
|
|
Total int64 `json:"total"`
|
|
List videotopicmod.VideoTopicModelList `json:"list"`
|
|
}
|
|
type VideoTopicUpdate struct {
|
|
Name *string `json:"name" bson:"name,omitempty"` // 名称
|
|
Title *string `json:"title" bson:"title,omitempty"` // APP显示
|
|
Desc *string `json:"desc" bson:"desc,omitempty"` // 描述
|
|
Rank *int64 `json:"rank" bson:"rank,omitempty"` //
|
|
SeoInfo *pubdef.SeoValue `json:"seoInfo" bson:"seoInfo,omitempty"` // Seo相关信息
|
|
Status *bool `json:"status" bson:"status,omitempty"` // 上架状态
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt,omitempty"`
|
|
IsReIndexNow *bool `json:"isReIndexNow" bson:"isReIndexNow,omitempty"` // 是否重新提交索引
|
|
IndexNow *int64 `bson:"indexNow,omitempty"`
|
|
Image *string `json:"image" bson:"image,omitempty"` // 背景
|
|
VideoCategoryId *int64 `json:"videoCategoryId" bson:"videoCategoryId,omitempty"` // 视频分类id
|
|
VideoTopicType *videoinformationmod.MediaType `json:"videoTopicType" bson:"videoTopicType"` // 视频类型
|
|
}
|
|
type VideoTopicUpdateReq struct {
|
|
Id int64 `json:"id" binding:"required"`
|
|
Param VideoTopicUpdate `json:"param" bson:"param"` // appId,唯一id
|
|
}
|
|
|
|
type VideoTopicDelReq struct {
|
|
Id int64 `json:"id" binding:"required"`
|
|
}
|