feat(video): add like/unlike/isliked/getlikescount APIs for videos

This commit is contained in:
Leon
2025-12-09 15:30:16 +08:00
parent 72f35f7a7a
commit eeafe9d32a
6 changed files with 228 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
package video
import "time"
type Like struct {
ID uint `gorm:"primaryKey"`
VideoID uint `gorm:"index, not null"`
AccountID uint `gorm:"index, not null"`
CreatedAt time.Time
}