Documentation ¶
Index ¶
- Variables
- type AdminAuthorityOpenController
- func (m *AdminAuthorityOpenController) AfterInitialize()
- func (c *AdminAuthorityOpenController) GetConsoleAuthorities(context *gin.Context)
- func (c *AdminAuthorityOpenController) GetRoleAuthorities(context *gin.Context)
- func (c *AdminAuthorityOpenController) GetUserAuthorities(context *gin.Context)
- func (c *AdminAuthorityOpenController) SetRoleAuthorities(context *gin.Context)
- func (c *AdminAuthorityOpenController) SetUserAuthorities(context *gin.Context)
- type AuthorityOpenController
Constants ¶
This section is empty.
Variables ¶
View Source
var AdminResources = &controller.Controllers{ Base: "/auth", Controllers: []controller.Controller{ adminAuthorityOpenController, }, }
View Source
var Resources = &controller.Controllers{ Controllers: []controller.Controller{ UserResources, AdminResources, }, }
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)
Click to show internal directories.
Click to hide internal directories.