admin

package
v0.0.0-...-8e1814b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 是否具有权限

type Result

type Result struct {
	Code  int    `json:"code"`
	Title string `json:"title"`
	Msg   string `json:"msg"`
}

Result struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL