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