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.

11 lines
270 B

5 years ago
  1. package registTable
  2. import (
  3. "github.com/jinzhu/gorm"
  4. "main/model/dbModel"
  5. )
  6. //注册数据库表专用
  7. func RegistTable(db *gorm.DB) {
  8. db.AutoMigrate(dbModel.User{}, dbModel.Authority{}, dbModel.Menu{}, dbModel.Api{}, dbModel.ApiAuthority{}, dbModel.BaseMenu{})
  9. }