auth

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources = &controller.Controllers{
	Base: "/auth",
	Controllers: []controller.Controller{
		authorityOpenController,
		buttonOpenController,
		menuOpenController,
	},
}

Functions

func InitRouter

func InitRouter(r *gin.RouterGroup)

Types

type AuthorityOpenController

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

func (*AuthorityOpenController) AfterInitialize

func (m *AuthorityOpenController) AfterInitialize()

func (*AuthorityOpenController) GetRoleAuthorities

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

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

func (*AuthorityOpenController) GetSystemAuthorities

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

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

func (*AuthorityOpenController) GetUserAuthorities

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

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

func (*AuthorityOpenController) GetUserMenuButtons

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

func (*AuthorityOpenController) GetUserMenus

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

type ButtonOpenController

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

func (*ButtonOpenController) AfterInitialize

func (m *ButtonOpenController) AfterInitialize()

func (*ButtonOpenController) CreateButton

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

2.按钮新增(store)

func (*ButtonOpenController) DeleteButton

func (u *ButtonOpenController) DeleteButton(context *gin.Context)

6.删除记录

func (*ButtonOpenController) GetButton

func (s *ButtonOpenController) GetButton(context *gin.Context)

func (*ButtonOpenController) GetButtons

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

1按钮列表

func (*ButtonOpenController) UpdateButton

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

5.按钮更新(update)

type MenuOpenController struct {
	controller.ResourceController
	MenuService       *auth.MenuService       `inject:"menuService"`
	MenuButtonService *auth.MenuButtonService `inject:"menuButtonService"`
	AuthorityService  *auth.AuthorityService  `inject:"authorityService"`
}
func (m *MenuOpenController) AfterInitialize()
func (u *MenuOpenController) GetCurrentUserMenus(c *gin.Context)

@Summary 获取登录用户信息 @Tags users @Accept json @Produce json @Success 200 {string} json "{ "code": 200, "data": {"lists":""}, "msg": "ok" }" @Failure 400 {string} json @Router /api/v1/userInfo [GET]

func (u *MenuOpenController) GetMenu(c *gin.Context)
func (u *MenuOpenController) GetSubMenus(c *gin.Context)

Jump to

Keyboard shortcuts

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