Files
web_huakui_server/web/service/srv_videotopic/define.go
T
rootandClaude Opus 4.7 85c0071fd8 feat: 从黄果 NET hgdjnet-server 9bfbafe 导入 HKDJ 官网后端
来源:hgdjnet-server 9bfbafe10d417deea959bd53117bc88a10e60a83
项目身份 HKDJ / JHA-216,独立官网仓库,Jenkins 守卫键 hkdjnet
测试目录 /server/hkdj_net,App/Web API 30331/30332

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-10-16 11:20:04 +08:00

41 lines
2.0 KiB
Go

package srv_videotopic
import (
"hkdj-web-server/pub/models/videoinformationmod"
"hkdj-web-server/pub/models/videotopicmod"
"hkdj-web-server/pub/pubdef"
"time"
)
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"` // 名称
Slug *string `json:"slug" bson:"slug,omitempty"` // slug
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"`
}