Testing for controller/main.go

This commit is contained in:
HFO4
2019-11-06 22:35:31 +08:00
parent 6ba4d1ae82
commit 2c9e0c1119
9 changed files with 240 additions and 3 deletions

8
models/migration.go Normal file
View File

@@ -0,0 +1,8 @@
package model
//执行数据迁移
func migration() {
// 自动迁移模式
DB.AutoMigrate()
}