move: 后端

This commit is contained in:
Leon
2025-12-25 22:40:20 +08:00
parent 99951ec3dc
commit 9ba916643e
31 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package video
import "time"
type Like struct {
ID uint `gorm:"primaryKey" json:"id"`
VideoID uint `gorm:"uniqueIndex:idx_like_video_account;not null" json:"video_id"`
AccountID uint `gorm:"uniqueIndex:idx_like_video_account;not null" json:"account_id"`
CreatedAt time.Time `json:"created_at"`
}
type LikeRequest struct {
VideoID uint `json:"video_id"`
}
type LikeHandler struct {
service *LikeService
}