19 lines
300 B
Go
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
|
|
}
|