mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-29 18:57:59 +08:00
A 权限模型解释
This commit is contained in:
parent
1b7f1b3b85
commit
15e81579e2
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
* [快速启动](start/index.md)
|
* [快速启动](start/index.md)
|
||||||
|
* [权限模型](permission/index.md)
|
||||||
* 参与开发
|
* 参与开发
|
||||||
* [PR](develop/pr.md)
|
* [PR](develop/pr.md)
|
||||||
* [前端](develop/frontend.md)
|
* [前端](develop/frontend.md)
|
||||||
|
27
docs/permission/index.md
Normal file
27
docs/permission/index.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# 权限模型角色
|
||||||
|
一个用户必须先分配一个空间,方可登录系统
|
||||||
|
|
||||||
|
用户所有操作均在登录空间下,或有多个空间可以切换
|
||||||
|
|
||||||
|
## admin 超级管理员
|
||||||
|
拥有一切权限,想做什么就做什么
|
||||||
|
|
||||||
|
## manager 域管理员
|
||||||
|
无法添加成员,域内一切权限
|
||||||
|
|
||||||
|
## group-manager 域内组管理员
|
||||||
|
无法添加成员和服务器,域内一切权限
|
||||||
|
|
||||||
|
## member 成员
|
||||||
|
部署发布
|
||||||
|
|
||||||
|
## 权限码表
|
||||||
|
| action | member | group-manager | manager | admin |
|
||||||
|
| ------------------------------------| ------ | ------------- | ------- | ----- |
|
||||||
|
| 部署发布 | ✓ | ✓ | ✓ | ✓ |
|
||||||
|
| 应用监控 | | ✓ | ✓ | ✓ |
|
||||||
|
| 项目设置 | | ✓ | ✓ | ✓ |
|
||||||
|
| 服务器管理 | | | ✓ | ✓ |
|
||||||
|
| 空间管理-查看、编辑 | | | ✓ | ✓ |
|
||||||
|
| 空间管理-新建、删除 | | | | ✓ |
|
||||||
|
| 成员列表 | | | | ✓ |
|
4
main.go
4
main.go
@ -20,8 +20,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
install()
|
|
||||||
godotenv.Load(core.GlobalPath + ".env")
|
|
||||||
println(`
|
println(`
|
||||||
______ __
|
______ __
|
||||||
/ ____/___ ____ / /___ __ __
|
/ ____/___ ____ / /___ __ __
|
||||||
@ -30,6 +28,8 @@ func main() {
|
|||||||
\____/\____/ .___/_/\____/\__, /
|
\____/\____/ .___/_/\____/\__, /
|
||||||
/_/ /____/
|
/_/ /____/
|
||||||
`)
|
`)
|
||||||
|
install()
|
||||||
|
godotenv.Load(core.GlobalPath + ".env")
|
||||||
core.CreateValidator()
|
core.CreateValidator()
|
||||||
model.Init()
|
model.Init()
|
||||||
ws.Init()
|
ws.Init()
|
||||||
|
Loading…
Reference in New Issue
Block a user