controllers

package
v0.0.0-...-af63903 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessDecision

func AccessDecision(params []string, accesslist map[string]bool) bool

To test whether permissions

func AccessRegister

func AccessRegister()

check access and register user's nodes

func CheckAccess

func CheckAccess(params []string) bool

Determine whether need to verify

func CheckLogin

func CheckLogin(username string, password string) (user models.User, err error)

check login

Types

type AdminController

type AdminController struct {
	CommonController
}

func (*AdminController) AdminLogin

func (this *AdminController) AdminLogin()

type Attributes

type Attributes struct {
	Url   string `json:"url"`
	Price int64  `json:"price"`
}

type CommonController

type CommonController struct {
	beego.Controller
	// Templatetype   string //ui template type
	// o              orm.Ormer
	// controllerName string
	// actionName     string
	IsLogin bool
}

func (*CommonController) Abort500

func (this *CommonController) Abort500(err error)

func (*CommonController) GetMustString

func (c *CommonController) GetMustString(key string, msg string) string

func (*CommonController) GetTemplatetype

func (this *CommonController) GetTemplatetype() string

func (*CommonController) MustLogin

func (this *CommonController) MustLogin()

func (*CommonController) Rsp

func (this *CommonController) Rsp(status bool, str string)

type MainController

type MainController struct {
	CommonController
}

func (*MainController) Changepwd

func (this *MainController) Changepwd()

修改密码

func (*MainController) Logout

func (this *MainController) Logout()

退出

type Tree

type Tree struct {
	Id         int64      `json:"id"`
	Text       string     `json:"text"`
	IconCls    string     `json:"iconCls"`
	Checked    string     `json:"checked"`
	State      string     `json:"state"`
	Children   []Tree     `json:"children"`
	Attributes Attributes `json:"attributes"`
}

type UserController

type UserController struct {
	CommonController
}

func (*UserController) AddUser

func (this *UserController) AddUser()

func (*UserController) DelUser

func (this *UserController) DelUser()

func (*UserController) Login

func (this *UserController) Login()

func (*UserController) UpdateUser

func (this *UserController) UpdateUser()

Jump to

Keyboard shortcuts

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