Documentation ¶
Index ¶
- Variables
- func InitRouter(r *gin.RouterGroup)
- type AuthorityMController
- func (m *AuthorityMController) AfterInitialize()
- func (c *AuthorityMController) GetRoleAuthorities(context *gin.Context)
- func (c *AuthorityMController) GetSystemAuthorities(context *gin.Context)
- func (c *AuthorityMController) GetUserAuthorities(context *gin.Context)
- func (c *AuthorityMController) GetUserMenuButtons(context *gin.Context)
- func (c *AuthorityMController) GetUserMenus(context *gin.Context)
- type ButtonMController
- func (m *ButtonMController) AfterInitialize()
- func (s *ButtonMController) CreateButton(c *gin.Context)
- func (u *ButtonMController) DeleteButton(c *gin.Context)
- func (s *ButtonMController) GetButton(c *gin.Context)
- func (s *ButtonMController) GetButtons(context *gin.Context)
- func (s *ButtonMController) UpdateButton(c *gin.Context)
- type MenuMController
- 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)
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 ¶
type MenuMController struct { controller.ResourceController MenuService *AuthService.MenuService `inject:"menuService"` MenuButtonService *AuthService.MenuButtonService `inject:"menuButtonService"` }
func (*MenuMController) AfterInitialize ¶
func (m *MenuMController) AfterInitialize()
func (*MenuMController) CreateMenu ¶
func (m *MenuMController) CreateMenu(c *gin.Context)
func (*MenuMController) DeleteMenu ¶
func (m *MenuMController) DeleteMenu(c *gin.Context)
func (*MenuMController) GetMenu ¶
func (m *MenuMController) GetMenu(c *gin.Context)
func (*MenuMController) GetMenus ¶
func (m *MenuMController) GetMenus(c *gin.Context)
func (*MenuMController) GetSubMenus ¶
func (m *MenuMController) GetSubMenus(c *gin.Context)
func (*MenuMController) UpdateMenu ¶
func (m *MenuMController) UpdateMenu(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.