Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperateType = 2 LoginType = 1 LogFail = "记录日志失败" )
View Source
const ( PermissionDenied = "没有权限" IsSuperAdmin = 1 )
View Source
const (
GuardError = "Guard错误"
)
Variables ¶
View Source
var ExcludeAuth = map[string]string{
"/admin/index": "GET",
}
ExcludeAuth 校验tokan,但不检查权限的路由
View Source
var ExcludeRoute = map[string]string{
"/user/login": "POST",
"/admin/login": "POST",
"/pc/login": "POST",
"/pc/send/code": "POST",
"/pc/chat/gpt/stream": "GET",
}
ExcludeRoute 以下路由不校验token
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.