swagger配置 数据库初始化结构调整
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package registTable
|
||||
|
||||
import (
|
||||
"github.com/jinzhu/gorm"
|
||||
"main/model/dbModel"
|
||||
)
|
||||
|
||||
func RegistTable(db *gorm.DB) {
|
||||
db.AutoMigrate(dbModel.User{})
|
||||
}
|
||||
Reference in New Issue
Block a user