You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
6 months ago
|
package entity
|
||
|
|
||
|
type VideoCopy struct {
|
||
|
Id int
|
||
|
VideoId string
|
||
|
ChannelId string
|
||
|
VideoTitle string
|
||
|
VideoLen int
|
||
|
VideoType string
|
||
|
VideoPublishTime string
|
||
|
VideoLanguage string
|
||
|
IsDownload int
|
||
|
IsCopy int
|
||
|
}
|
||
|
|
||
|
type Video struct {
|
||
|
Id uint `gorm:"column:id;primaryKey;autoIncrement"`
|
||
|
VideoId string `gorm:"column:videoId;type:varchar(255);not null"`
|
||
|
ChannelId string `gorm:"column:channelId;type:varchar(255);not null"`
|
||
|
VideoTitle string `gorm:"column:videoTitle;type:varchar(255);not null"`
|
||
|
VideoLen int `gorm:"column:videoLen;type:int;not null"`
|
||
|
VideoType string `gorm:"column:videoType;type:varchar(255);not null"`
|
||
|
VideoPublishTime string `gorm:"column:videoPublishTime;type:varchar(255);not null"`
|
||
|
VideoLanguage string `gorm:"column:videoLanguage;type:varchar(255);not null"`
|
||
|
IsDownload int `gorm:"column:isDownload;type:int;not null"`
|
||
|
}
|
||
|
|
||
|
func (Video) TableName() string {
|
||
|
return "Videos"
|
||
|
}
|