Files
nl-video-api/internal/model/entity/movie.go
2025-08-03 00:11:15 +08:00

36 lines
2.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
// Movie 影片实体
type Movie struct {
Id int `json:"id" orm:"id,primary"` // 影片ID
Title string `json:"title" orm:"title"` // 影片标题
OriginalTitle string `json:"original_title" orm:"original_title"` // 原始标题
Poster string `json:"poster" orm:"poster"` // 海报图片
Banner string `json:"banner" orm:"banner"` // 横幅图片
CategoryId int `json:"category_id" orm:"category_id"` // 分类ID
Type int `json:"type" orm:"type"` // 类型:1-电影,2-电视剧,3-综艺,4-动漫,5-纪录片
Area string `json:"area" orm:"area"` // 地区
Language string `json:"language" orm:"language"` // 语言
Year int `json:"year" orm:"year"` // 年份
Duration int `json:"duration" orm:"duration"` // 时长(分钟)
Director string `json:"director" orm:"director"` // 导演
Actor string `json:"actor" orm:"actor"` // 演员
Description string `json:"description" orm:"description"` // 简介
Tags string `json:"tags" orm:"tags"` // 标签,逗号分隔
Rating float64 `json:"rating" orm:"rating"` // 评分
RatingCount int `json:"rating_count" orm:"rating_count"` // 评分人数
ViewCount int `json:"view_count" orm:"view_count"` // 观看次数
LikeCount int `json:"like_count" orm:"like_count"` // 点赞数
CollectCount int `json:"collect_count" orm:"collect_count"` // 收藏数
CommentCount int `json:"comment_count" orm:"comment_count"` // 评论数
IsVip int `json:"is_vip" orm:"is_vip"` // 是否VIP专享:0-否,1-是
IsRecommend int `json:"is_recommend" orm:"is_recommend"` // 是否推荐:0-否,1-是
IsHot int `json:"is_hot" orm:"is_hot"` // 是否热门:0-否,1-是
IsNew int `json:"is_new" orm:"is_new"` // 是否最新:0-否,1-是
Sort int `json:"sort" orm:"sort"` // 排序
Status int `json:"status" orm:"status"` // 状态:1-正常,0-下架
CreatedAt string `json:"created_at" orm:"created_at"` // 创建时间
UpdatedAt string `json:"updated_at" orm:"updated_at"` // 更新时间
DeletedAt string `json:"deleted_at" orm:"deleted_at"` // 删除时间
}