diff --git a/src/models/video.go b/src/models/video.go index 95ea100..c9b3968 100644 --- a/src/models/video.go +++ b/src/models/video.go @@ -7,7 +7,7 @@ import ( // Video 视频表 type Video struct { - ID uint32 `gorm:"not null;index:video;primarykey;autoIncrement"` + ID uint32 `gorm:"not null;primarykey;autoIncrement"` Title string `json:"title" gorm:"not null;"` FileName string `json:"play_name" gorm:"not null;"` CoverName string `json:"cover_name" gorm:"not null;"`