openapi

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminResources = &controller.Controllers{
	Base: "/auth",
	Controllers: []controller.Controller{
		adminAuthorityOpenController,
	},
}
View Source
var UserResources = &controller.Controllers{
	Base: "/auth",
	Controllers: []controller.Controller{
		authorityOpenController,
	},
}

Functions

This section is empty.

Types

type AdminAuthorityOpenController

type AdminAuthorityOpenController struct {
	controller.ResourceController
	AuthorityService *service.AuthorityService `inject:"authorityService"`
}

func (*AdminAuthorityOpenController) AfterInitialize

func (m *AdminAuthorityOpenController) AfterInitialize()

func (*AdminAuthorityOpenController) GetConsoleAuthorities

func (c *AdminAuthorityOpenController) GetConsoleAuthorities(context *gin.Context)

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

func (*AdminAuthorityOpenController) GetRoleAuthorities

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

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

func (*AdminAuthorityOpenController) GetUserAuthorities

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

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

func (*AdminAuthorityOpenController) SetRoleAuthorities

func (c *AdminAuthorityOpenController) SetRoleAuthorities(context *gin.Context)

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

func (*AdminAuthorityOpenController) SetUserAuthorities

func (c *AdminAuthorityOpenController) SetUserAuthorities(context *gin.Context)

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

type AuthorityOpenController

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

func (*AuthorityOpenController) AfterInitialize

func (m *AuthorityOpenController) AfterInitialize()

func (*AuthorityOpenController) GetUserAuthorities

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

func (*AuthorityOpenController) GetUserMenus

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

Jump to

Keyboard shortcuts

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