controllers

package
v0.0.0-...-8296c84 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT, GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAdminController

type BaseAdminController struct {
	BaseController
	// contains filtered or unexported fields
}

func (*BaseAdminController) Prepare

func (this *BaseAdminController) Prepare()

type BaseController

type BaseController struct {
	beego.Controller
}

func (*BaseController) JsonError

func (this *BaseController) JsonError(message interface{}, data ...interface{})

func (*BaseController) JsonSuccess

func (this *BaseController) JsonSuccess(message interface{}, data ...interface{})

func (*BaseController) View

func (this *BaseController) View(module, viewName string)

func (*BaseController) ViewError

func (this *BaseController) ViewError(errorMessage string, data ...interface{})

func (*BaseController) ViewLayout

func (this *BaseController) ViewLayout(module, viewName, layout string)

func (*BaseController) ViewLayoutTitle

func (this *BaseController) ViewLayoutTitle(module, title, viewName, layout string)

func (*BaseController) ViewTitle

func (this *BaseController) ViewTitle(module, title, viewName string)

type JSONResponse

type JSONResponse struct {
	Code     int                    `json:"code"`
	Message  interface{}            `json:"message"`
	Data     interface{}            `json:"data"`
	Redirect map[string]interface{} `json:"redirect"`
}

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) Captcha

func (this *LoginController) Captcha()

func (*LoginController) Index

func (this *LoginController) Index()

func (*LoginController) Login

func (this *LoginController) Login()

login

func (*LoginController) Logout

func (this *LoginController) Logout()

logout

type MainController

type MainController struct {
	BaseAdminController
}

func (*MainController) Default

func (this *MainController) Default()

func (*MainController) Index

func (this *MainController) Index()

type PrivilegeController

type PrivilegeController struct {
	BaseAdminController
}

func (*PrivilegeController) Add

func (this *PrivilegeController) Add()

func (*PrivilegeController) Delete

func (this *PrivilegeController) Delete()

func (*PrivilegeController) Edit

func (this *PrivilegeController) Edit()

func (*PrivilegeController) List

func (this *PrivilegeController) List()

权限列表

type RoleController

type RoleController struct {
	BaseAdminController
}

func (*RoleController) Add

func (this *RoleController) Add()

func (*RoleController) Delete

func (this *RoleController) Delete()

func (*RoleController) Edit

func (this *RoleController) Edit()

func (*RoleController) List

func (this *RoleController) List()

type Role_PrivilegeController

type Role_PrivilegeController struct {
	BaseAdminController
}

func (*Role_PrivilegeController) Add

func (this *Role_PrivilegeController) Add()

角色授权

func (*Role_PrivilegeController) Save

func (this *Role_PrivilegeController) Save()

type SystemController

type SystemController struct {
	BaseAdminController
}

func (*SystemController) Base

func (this *SystemController) Base()

type UserController

type UserController struct {
	BaseAdminController
}

func (*UserController) Add

func (this *UserController) Add()

func (*UserController) ChangePassword

func (this *UserController) ChangePassword()

func (*UserController) Edit

func (this *UserController) Edit()

func (*UserController) Forbidden

func (this *UserController) Forbidden()

func (*UserController) List

func (this *UserController) List()

func (*UserController) Profile

func (this *UserController) Profile()

个人资料

func (*UserController) Review

func (this *UserController) Review()

Jump to

Keyboard shortcuts

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