初次提交

This commit is contained in:
liuzhihang1
2024-06-26 20:45:23 +08:00
parent 4b388a5be1
commit 831ea9889f
57 changed files with 3945 additions and 0 deletions

1
consts/consts.go Normal file
View File

@@ -0,0 +1 @@
package consts

View File

@@ -0,0 +1,7 @@
package ctxflag
const (
USER_NAME = "user"
ROLE = "role"
ERR = "err"
)

View 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
View File

@@ -0,0 +1,10 @@
package role
type Role int
const (
ROOT Role = iota
ADMIN
USER
GUEST
)