mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
1、实现超级管理员用户管理功能
2、实现超级管理员项目列表功能 3、实现项目成员列表功能
This commit is contained in:
@@ -10,6 +10,30 @@ const RegexpEmail = `^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$`
|
||||
|
||||
const RegexpAccount = `^[a-zA-Z][a-zA-z0-9]{2,50}$`
|
||||
|
||||
// PageSize 默认分页条数.
|
||||
const PageSize = 15
|
||||
|
||||
// 用户权限
|
||||
const (
|
||||
// 超级管理员.
|
||||
MemberSuperRole = 0
|
||||
//普通管理员.
|
||||
MemberAdminRole = 1
|
||||
//普通用户.
|
||||
MemberGeneralRole = 2
|
||||
)
|
||||
|
||||
const (
|
||||
// 创始人.
|
||||
BookFounder = 0
|
||||
//管理者
|
||||
BookAdmin = 1
|
||||
//编辑者.
|
||||
BookEditor = 2
|
||||
//观察者
|
||||
BookObserver = 3
|
||||
)
|
||||
|
||||
// app_key
|
||||
func GetAppKey() (string) {
|
||||
return beego.AppConfig.DefaultString("app_key","go-git-webhook")
|
||||
|
||||
Reference in New Issue
Block a user