mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
1、实现超级管理员用户管理功能
2、实现超级管理员项目列表功能 3、实现项目成员列表功能
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/astaxie/beego/orm"
|
||||
"github.com/astaxie/beego/logs"
|
||||
"os"
|
||||
"github.com/lifei6671/godoc/conf"
|
||||
)
|
||||
|
||||
// RegisterDataBase 注册数据库
|
||||
@@ -33,13 +34,15 @@ func RegisterDataBase() {
|
||||
|
||||
// RegisterModel 注册Model
|
||||
func RegisterModel() {
|
||||
orm.RegisterModelWithPrefix("md_",
|
||||
orm.RegisterModelWithPrefix(conf.GetDatabasePrefix(),
|
||||
new(models.Member),
|
||||
new(models.Book),
|
||||
new(models.Relationship),
|
||||
new(models.Comment),
|
||||
new(models.Option),
|
||||
new(models.Document),
|
||||
new(models.Attachment),
|
||||
new(models.Logger),
|
||||
)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user