来源: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>
37 lines
1.4 KiB
Go
37 lines
1.4 KiB
Go
package srv_videocreater
|
|
|
|
import (
|
|
"hkdj-web-server/pub/models/videocreatermod"
|
|
"hkdj-web-server/pub/pubdef"
|
|
"time"
|
|
)
|
|
|
|
type VideoCreaterReq struct {
|
|
pubdef.Page
|
|
ID int64 `json:"id"` //分类ID
|
|
Name string `json:"name"` //分类名称
|
|
}
|
|
type VideoCreaterResp struct {
|
|
Total int64 `json:"total"`
|
|
List videocreatermod.VideoCreaterInfoList `json:"list"`
|
|
}
|
|
type VideoCreaterUpdate struct {
|
|
AppId *int32 `json:"appId" bson:"appId,omitempty"` // appId,唯一id
|
|
Name *string `json:"name" bson:"name,omitempty"` // 名称
|
|
Slug *string `json:"slug" bson:"slug,omitempty"` // slug
|
|
Status *bool `json:"status" bson:"status,omitempty"` // 上架状态
|
|
Sort *int64 `json:"sort" bson:"sort,omitempty"` // 排序
|
|
SeoInfo *pubdef.SeoValue `json:"seoInfo" bson:"seoInfo,omitempty"` // Seo相关信息
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt,omitempty"`
|
|
IsReIndexNow *bool `json:"isReIndexNow" bson:"isReIndexNow"` // 是否重新提交索引
|
|
IndexNow *int64 `bson:"indexNow,omitempty"`
|
|
}
|
|
type VideoCreaterUpdateReq struct {
|
|
Id int64 `json:"id" binding:"required"`
|
|
Param VideoCreaterUpdate `json:"param" bson:"param"` // appId,唯一id
|
|
}
|
|
|
|
type VideoCreaterDelReq struct {
|
|
Id int64 `json:"id" binding:"required"`
|
|
}
|