Documentation ¶
Index ¶
- Variables
- type AuthorityController
- func (m *AuthorityController) AfterInitialize()
- func (c *AuthorityController) GetRoleAuthorities(context *gin.Context)
- func (c *AuthorityController) GetSystemAuthorities(context *gin.Context)
- func (c *AuthorityController) GetUserAuthorities(context *gin.Context)
- func (c *AuthorityController) GetUserMenus(context *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources = &controller.Controllers{ Base: "/auth", Controllers: []controller.Controller{ authorityController, }, }
Functions ¶
This section is empty.
Types ¶
type AuthorityController ¶
type AuthorityController struct { controller.ResourceController AuthorityService *service.AuthorityService `inject:"authorityService"` }
func (*AuthorityController) AfterInitialize ¶
func (m *AuthorityController) AfterInitialize()
func (*AuthorityController) GetRoleAuthorities ¶
func (c *AuthorityController) GetRoleAuthorities(context *gin.Context)
待分配的系统菜单以及挂接的按钮
func (*AuthorityController) GetSystemAuthorities ¶
func (c *AuthorityController) GetSystemAuthorities(context *gin.Context)
待分配的系统菜单以及挂接的按钮
func (*AuthorityController) GetUserAuthorities ¶
func (c *AuthorityController) GetUserAuthorities(context *gin.Context)
根据用户ID获取所有权限的来源
func (*AuthorityController) GetUserMenus ¶
func (c *AuthorityController) GetUserMenus(context *gin.Context)
Click to show internal directories.
Click to hide internal directories.