Files
VLoop/internal/video/like_entity.go

19 lines
300 B
Go
Raw Normal View History

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
}