Documentation ¶
Index ¶
- Variables
- type AdminBaseController
- func (e *AdminBaseController) AppendCustomScripts(list []string)
- func (e *AdminBaseController) AppendCustomStyles(list []string)
- func (e *AdminBaseController) GetCurrentUser() (int64, string, error)
- func (e *AdminBaseController) GetVersionAdminBaseURL() string
- func (e *AdminBaseController) HasPermissions(userID, powerID int64) bool
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AdminBaseRoterVersion = "v1" TemplageAdminBaseURL = "admin" )
View Source
var ( // AdminVerifyLogin 是否开始管理员验证,主要后台用于调试用 AdminVerifyLogin bool )
Functions ¶
This section is empty.
Types ¶
type AdminBaseController ¶
type AdminBaseController struct {
controllers.BaseController
}
AdminBaseController struct
func (*AdminBaseController) AppendCustomScripts ¶
func (e *AdminBaseController) AppendCustomScripts(list []string)
AppendCustomScripts 注册自定义脚本
func (*AdminBaseController) AppendCustomStyles ¶
func (e *AdminBaseController) AppendCustomStyles(list []string)
AppendCustomStyles 注册自定义脚样式
func (*AdminBaseController) GetCurrentUser ¶
func (e *AdminBaseController) GetCurrentUser() (int64, string, error)
GetCurrentUser 返回用户ID
func (*AdminBaseController) GetVersionAdminBaseURL ¶
func (e *AdminBaseController) GetVersionAdminBaseURL() string
返回版本号+admin拼接的url
func (*AdminBaseController) HasPermissions ¶
func (e *AdminBaseController) HasPermissions(userID, powerID int64) bool
HasPermissions 是否具有权限
Click to show internal directories.
Click to hide internal directories.