feat(video): add likescount and updatelikescount

This commit is contained in:
Leon
2025-12-09 21:11:29 +08:00
parent d1c0f049d6
commit 8e51de9410
6 changed files with 68 additions and 6 deletions

View File

@@ -8,5 +8,7 @@ type Video struct {
Title string `gorm:"type:varchar(255);not null"`
Description string `gorm:"type:varchar(255);"`
PlayURL string `gorm:"type:varchar(255);not null"`
CoverURL string `gorm:"type:varchar(255);not null"`
CreateTime time.Time `gorm:"autoCreateTime"`
LikesCount int64 `gorm:"column:likes_count;not null;default:0" json:"likes_count"`
}