appolli
6 months ago
3 changed files with 43 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||||
|
package entity |
||||
|
|
||||
|
type DownloadInfo struct { |
||||
|
Id uint `gorm:"column:id;primaryKey;autoIncrement"` |
||||
|
VideoId string `gorm:"column:videoId;type:varchar(255);not null"` |
||||
|
DownloadType int `gorm:"column:downloadType;not null"` |
||||
|
TryTime int `gorm:"column:tryTIme;not null"` |
||||
|
IsFinished int `gorm:"column:isFinished;not null"` |
||||
|
} |
||||
|
|
||||
|
func (DownloadInfo) TableName() string { |
||||
|
return "Download_info" |
||||
|
} |
Loading…
Reference in new issue