1、实现超级管理员用户管理功能

2、实现超级管理员项目列表功能
3、实现项目成员列表功能
This commit is contained in:
Minho
2017-04-24 18:25:17 +08:00
parent d1b2c52124
commit 1afb119bde
29 changed files with 1152 additions and 105 deletions

View File

@@ -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),
)
}