Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package srv_videocollection
|
||||
|
||||
import (
|
||||
"time"
|
||||
"videoweb/pub/models/videoinformationmod"
|
||||
"videoweb/pub/pubdef"
|
||||
)
|
||||
|
||||
type VideoCollectionOptionMediaReq struct {
|
||||
CollectionID int64 `json:"collectionID" bson:"collectionID"` // 合集ID
|
||||
IsAdd bool `json:"isAdd" bson:"isAdd"` // 增加还是移除
|
||||
VideoIds []int64 `json:"videoIds" bson:"videoIds"` // 视频ID
|
||||
}
|
||||
|
||||
type UpdateCollectionMediaRankReq struct {
|
||||
CollectionID int64 `json:"collectionID" bson:"collectionID"` //合集ID
|
||||
VideoId int64 `json:"videoId" bson:"videoId"` // 视频ID
|
||||
Rank int64 `json:"rank" bson:"rank"` // 排序
|
||||
}
|
||||
|
||||
type GetCollectionMediaListReq struct {
|
||||
CollectionID int64 `json:"collectionID" bson:"collectionID"`
|
||||
pubdef.Page
|
||||
}
|
||||
type GetCollectionMediaListResp struct {
|
||||
Total int64 `json:"total" bson:"total"`
|
||||
List []CollectionMediaInfo `json:"list" bson:"list"`
|
||||
}
|
||||
|
||||
type CollectionMediaInfo struct {
|
||||
Id int64 `json:"id" bson:"_id,omitempty"`
|
||||
Title string `json:"title" bson:"title"` // 帖子标题
|
||||
CoverImg string `bson:"coverImg,omitempty" json:"coverImg"` // 封面
|
||||
Desc string `bson:"desc,omitempty" json:"desc"` // 详细描述
|
||||
Remark string `bson:"remark,omitempty" json:"remark"` // 备注
|
||||
Nodes []videoinformationmod.Node `json:"nodes" bson:"nodes"` // 节点
|
||||
Status pubdef.InformationStatus `json:"status" bson:"status"` // 帖子上架状态
|
||||
Video videoinformationmod.VideoInfo `json:"video" bson:"video"` // 视频
|
||||
Rank int64 `json:"rank" bson:"rank"` // 排序
|
||||
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` // 更新时间
|
||||
CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // 创建时间
|
||||
}
|
||||
Reference in New Issue
Block a user