Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Search ¶
type Search struct { Year int64 `sql:"year >= ?"` Liked int64 `sql:"liked >= ?"` Title string `sql:"title LIKE ?"` }
func (*Search) SearchVideos ¶
type Video ¶
type Video struct { ID int64 `gorm:"primaryKey;not null;unique"` UserID int64 `gorm:"not null"` Title string `gorm:"unique;not null"` Description string `gorm:"not null"` Liked int64 `gorm:"not null"` VideoUrl string `gorm:"not null"` Year int64 `gorm:"not null"` Status *Status `gorm:"foreignKey:VideoID;references:ID"` }
func (*Video) JudgeThenGet ¶
Click to show internal directories.
Click to hide internal directories.