feat: 添加鉴权组件
This commit is contained in:
8
constants/auth.go
Normal file
8
constants/auth.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package constants
|
||||
|
||||
const (
|
||||
LEVEL_ROOT = 0
|
||||
LEVEL_ADMIN = 10
|
||||
LEVEL_USER = 20 //default
|
||||
LEVEL_BANNED = 100
|
||||
)
|
||||
Reference in New Issue
Block a user