mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-26 20:11:20 +08:00
初次提交
This commit is contained in:
1
consts/consts.go
Normal file
1
consts/consts.go
Normal file
@@ -0,0 +1 @@
|
||||
package consts
|
7
consts/ctxflag/ctxflag.go
Normal file
7
consts/ctxflag/ctxflag.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package ctxflag
|
||||
|
||||
const (
|
||||
USER_NAME = "user"
|
||||
ROLE = "role"
|
||||
ERR = "err"
|
||||
)
|
9
consts/permission/permission.go
Normal file
9
consts/permission/permission.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package permission
|
||||
|
||||
type OprPermission string
|
||||
|
||||
const (
|
||||
START_OPERATION OprPermission = "Start"
|
||||
STOP_OPERATION OprPermission = "Stop"
|
||||
TERMINAL_OPERATION OprPermission = "Terminal"
|
||||
)
|
10
consts/role/role.go
Normal file
10
consts/role/role.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package role
|
||||
|
||||
type Role int
|
||||
|
||||
const (
|
||||
ROOT Role = iota
|
||||
ADMIN
|
||||
USER
|
||||
GUEST
|
||||
)
|
Reference in New Issue
Block a user