auth

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources = &controller.Controllers{
	Base: "/auth",
	Controllers: []controller.Controller{
		authorityMController,
		buttonMController,
		menuMController,
	},
}

Functions

func InitRouter

func InitRouter(r *gin.RouterGroup)

Types

type AuthorityMController

type AuthorityMController struct {
	controller.ResourceController
	AuthorityService *auth.AuthorityService `inject:"authorityService"`
}

func (*AuthorityMController) AfterInitialize

func (m *AuthorityMController) AfterInitialize()

func (*AuthorityMController) GetRoleAuthorities

func (c *AuthorityMController) GetRoleAuthorities(context *gin.Context)

待分配的系统菜单以及挂接的按钮

func (*AuthorityMController) GetSystemAuthorities

func (c *AuthorityMController) GetSystemAuthorities(context *gin.Context)

待分配的系统菜单以及挂接的按钮

func (*AuthorityMController) GetUserAuthorities

func (c *AuthorityMController) GetUserAuthorities(context *gin.Context)

根据用户ID获取所有权限的来源

func (*AuthorityMController) GetUserMenuButtons

func (c *AuthorityMController) GetUserMenuButtons(context *gin.Context)

func (*AuthorityMController) GetUserMenus

func (c *AuthorityMController) GetUserMenus(context *gin.Context)

type ButtonMController

type ButtonMController struct {
	controller.ResourceController
	ButtonService     *AuthService.ButtonService     `inject:"buttonService"`
	MenuButtonService *AuthService.MenuButtonService `inject:"menuButtonService"`
}

func (*ButtonMController) AfterInitialize

func (m *ButtonMController) AfterInitialize()

func (*ButtonMController) CreateButton

func (s *ButtonMController) CreateButton(c *gin.Context)

2.按钮新增(store)

func (*ButtonMController) DeleteButton

func (u *ButtonMController) DeleteButton(c *gin.Context)

6.删除记录

func (*ButtonMController) GetButton

func (s *ButtonMController) GetButton(c *gin.Context)

func (*ButtonMController) GetButtons

func (s *ButtonMController) GetButtons(context *gin.Context)

1按钮列表

func (*ButtonMController) UpdateButton

func (s *ButtonMController) UpdateButton(c *gin.Context)

5.按钮更新(update)

type MenuMController struct {
	controller.ResourceController
	MenuService       *AuthService.MenuService       `inject:"menuService"`
	MenuButtonService *AuthService.MenuButtonService `inject:"menuButtonService"`
}
func (m *MenuMController) AfterInitialize()
func (m *MenuMController) CreateMenu(c *gin.Context)
func (m *MenuMController) DeleteMenu(c *gin.Context)
func (m *MenuMController) GetMenu(c *gin.Context)
func (m *MenuMController) GetMenus(c *gin.Context)
func (m *MenuMController) GetSubMenus(c *gin.Context)
func (m *MenuMController) UpdateMenu(c *gin.Context)

Jump to

Keyboard shortcuts

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