72 lines
3.9 KiB
Go
72 lines
3.9 KiB
Go
package srv_app
|
|
|
|
import (
|
|
"time"
|
|
"videoweb/pub/models/videoinformationmod"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type AppCategoryInfo struct {
|
|
Id int64 `json:"id" bson:"_id,omitempty"` // Id
|
|
Name string `json:"name" bson:"name"` // 分类名称
|
|
Title string `json:"title" bson:"title"` // APP显示
|
|
Desc string `json:"desc" bson:"desc"` // 描述
|
|
Rank int64 `json:"rank" bson:"rank"` // 排序
|
|
}
|
|
|
|
type AppCreatorInfo struct {
|
|
Id int64 `json:"id" bson:"_id,omitempty"`
|
|
Name string `json:"name" bson:"name"` // 帖子标题
|
|
Sort int64 `json:"sort" bson:"sort"` // 排序
|
|
}
|
|
|
|
type AppTagInfo struct {
|
|
Id int64 `json:"id" bson:"_id,omitempty"`
|
|
Title string `json:"title" bson:"title"` // 帖子标题
|
|
Sort int64 `json:"sort" bson:"sort"` // 排序
|
|
}
|
|
|
|
// AppVideoInfoSyncReq APP数据同步请求
|
|
type AppVideoInfoSyncReq struct {
|
|
AppId int64 `json:"appId" bson:"appId"`
|
|
LastSyncTime time.Time `json:"lastSyncTime" bson:"lastSyncTime"` // 最后同步时间
|
|
PageSize int64 `json:"pageSize" bson:"pageSize"` // 页大小
|
|
}
|
|
|
|
type AppVideoCollectionSyncReq struct {
|
|
AppId int64 `json:"appId" bson:"appId"`
|
|
CollectionId []int64 `json:"collectionId" bson:"collectionId"`
|
|
}
|
|
|
|
type AppVideoCollectionSyncInfo struct {
|
|
CollectionID int64 `json:"collectionId" bson:"collectionId"` // 合集ID
|
|
VideoId int64 `json:"videoId" bson:"videoId"` // 视频ID
|
|
Rank int64 `json:"rank" bson:"rank"` // 排序
|
|
}
|
|
|
|
type AppVideoSyncInfo struct {
|
|
Id int64 `json:"id" bson:"_id,omitempty"`
|
|
Title string `json:"title" bson:"title"` // 帖子标题
|
|
MediaType videoinformationmod.MediaType `json:"mediaType" bson:"mediaType"` // 资源类型
|
|
AddedTime time.Time `json:"addedTime" bson:"addedTime"` // 帖子上架时间
|
|
CreatorId int64 `json:"creatorId" bson:"creatorId"` // 作者Id
|
|
CreatorName string `json:"creatorName" bson:"creatorName"` // 作者名称
|
|
Keyworld []string `bson:"keyworld,omitempty" json:"keyworld"` // 关键字
|
|
FirstTag string `bson:"firstTag,omitempty" json:"firstTag"` // 一级标签
|
|
SecondTags []string `bson:"secondTags,omitempty" json:"secondTags"` // 二级标签标签
|
|
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"` // 视频
|
|
CategoryIds []int64 `json:"categoryIds" bson:"categoryIds"` // 分类Id
|
|
Tags []int64 `json:"tags" bson:"tags"` // 标签
|
|
IsHot bool `json:"isHot" bson:"isHot"` // 是否热门
|
|
Sort int64 `json:"sort" bson:"sort"` // 排序
|
|
Real pubdef.Flow `json:"real" bson:"real"` // 真实流量
|
|
VideoCount int64 `json:"videoCount" bson:"videoCount"` // 合集视频数量
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` // 更新时间
|
|
CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // 创建时间
|
|
}
|