Files
VLoop/internal/video/like_entity.go
2025-12-15 17:32:56 +08:00

19 lines
300 B
Go

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
}
type LikeRequest struct {
VideoID uint `json:"video_id"`
}
type LikeHandler struct {
service *LikeService
}