controllers

package
v0.0.0-...-320587e Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

1. 权限多叉树解析获取功能ID 2. 修改功能 3. 删除功能 4. 功能列表与搜索 5. 新增功能 6. 解析URL,获取功能ID

角色管理 1. 修改角色 2. 新增角色 3. 获取角色列表

白名单管理: 1. 修改白名单 2. 删除白名单 3. 新增白名单 4. 白名单列表

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionInfo

type FunctionInfo struct {
	Uri    string `json:"uri"`
	Method string `json:"method"`
	Name   string `json:"name"`
}

type FunctionsController

type FunctionsController struct {
	beego.Controller
}

FunctionsController operations for Functions

func (*FunctionsController) AddFunction

func (t *FunctionsController) AddFunction()

5. 新增功能 @router / [POST]

func (*FunctionsController) DeleteFuntion

func (t *FunctionsController) DeleteFuntion()

3. 删除功能 @router /:id/invalid [PUT]

func (*FunctionsController) GetFuncId

func (t *FunctionsController) GetFuncId()

>> 1. 获取功能ID @router / [POST]

func (*FunctionsController) GetFunctions

func (t *FunctionsController) GetFunctions()

4. 功能列表与搜索 @router / [GET]

func (*FunctionsController) ModifyFunction

func (t *FunctionsController) ModifyFunction()

2. 修改功能 @router /:id [PUT]

type RoleFunctionRelationshipsController

type RoleFunctionRelationshipsController struct {
	beego.Controller
}

RoleFunctionRelationshipsController operations for RoleFunctionRelationships

func (*RoleFunctionRelationshipsController) AddRoleFunction

func (t *RoleFunctionRelationshipsController) AddRoleFunction()

2. 新增角色与功能关系 @router / [POST]

func (*RoleFunctionRelationshipsController) DeleteRoleFunction

func (t *RoleFunctionRelationshipsController) DeleteRoleFunction()

1. 删除角色与功能关系 @router /:id/invalid [PUT]

func (*RoleFunctionRelationshipsController) GetRoleFunctions

func (t *RoleFunctionRelationshipsController) GetRoleFunctions()

3. 角色与功能关系列表和搜索 @router / [GET]

type RoleInfo

type RoleInfo struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type RolesController

type RolesController struct {
	beego.Controller
}

RolesController operations for Roles

func (*RolesController) AddRole

func (t *RolesController) AddRole()

2. 新增角色 @router / [POST]

func (*RolesController) GetRoles

func (t *RolesController) GetRoles()

3. 获取角色列表 @router / [GET]

func (*RolesController) ModifyRoles

func (t *RolesController) ModifyRoles()

1. 修改角色 @router /:id [PUT]

type UserRolesController

type UserRolesController struct {
	beego.Controller
}

UserRolesController operations for UserRoles

func (*UserRolesController) DeleteUserRoles

func (t *UserRolesController) DeleteUserRoles()

1. 删除用户与角色关系 @router /:id/invalid [PUT]

func (*UserRolesController) GetUserRoles

func (t *UserRolesController) GetUserRoles()

3. 用户与角色关系列表和搜索 @router / [GET]

func (*UserRolesController) InsertUserRole

func (t *UserRolesController) InsertUserRole()

2. 新增用户与角色关系 @router / [POST]

type WhiteListController

type WhiteListController struct {
	beego.Controller
}

WhiteListController operations for WhiteList

func (*WhiteListController) AddWhiteList

func (t *WhiteListController) AddWhiteList()

3. 新增白名单 @router / [POST]

func (*WhiteListController) DeleteWhiteList

func (t *WhiteListController) DeleteWhiteList()

2. 删除白名单 @router /:id/invalid [PUT]

func (*WhiteListController) GetWhiteLists

func (t *WhiteListController) GetWhiteLists()

4. 白名单列表 @router / [GET]

func (*WhiteListController) ModifyWhitList

func (t *WhiteListController) ModifyWhitList()

1. 修改白名单 @router /:id [PUT]

type WhiteListInfo

type WhiteListInfo struct {
	Method string `json:"method"`
	Name   string `json:"name"`
	Uri    string `json:"uri"`
}

Jump to

Keyboard shortcuts

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