| 1234567891011121314151617181920212223242526272829303132333435 |
- package models
- import (
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/config"
- "github.com/xormplus/xorm"
- //"git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
- )
- func SyncDb(db *xorm.Engine) {
- if !config.AppConfig.SyncDb {
- return
- }
- db.Sync2(new (SysUser))
- db.Sync2(new (SysOrg))
- db.Sync2(new (SysRole))
- db.Sync2(new (SysUserRole))
- db.Sync2(new (SysMenu))
- db.Sync2(new (SysRoleMenu))
- db.Sync2(new (SysPermission))
- db.Sync2(new (SysRolePermission))
- db.Sync2(new (SysAttachment))
- db.Sync2(new (SysDomain))
- }
|