Documentation ¶
Index ¶
- Variables
- type ButtonController
- func (m *ButtonController) AfterInitialize()
- func (s *ButtonController) CreateButton(c *gin.Context)
- func (u *ButtonController) DeleteButton(c *gin.Context)
- func (s *ButtonController) GetButton(c *gin.Context)
- func (s *ButtonController) GetButtons(c *gin.Context)
- func (s *ButtonController) UpdateButton(c *gin.Context)
- type MenuController
- func (m *MenuController) AfterInitialize()
- func (m *MenuController) CreateMenu(c *gin.Context)
- func (m *MenuController) DeleteMenu(c *gin.Context)
- func (m *MenuController) GetMenu(c *gin.Context)
- func (m *MenuController) GetMenus(c *gin.Context)
- func (m *MenuController) GetSubMenus(c *gin.Context)
- func (m *MenuController) UpdateMenu(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources = &controller.Controllers{ Base: "/auth", Controllers: []controller.Controller{ buttonController, menuController, }, }
Functions ¶
This section is empty.
Types ¶
type ButtonController ¶
type ButtonController struct { controller.ResourceController ButtonService *service.ButtonService `inject:"buttonService"` }
func (*ButtonController) AfterInitialize ¶
func (m *ButtonController) AfterInitialize()
func (*ButtonController) CreateButton ¶
func (s *ButtonController) CreateButton(c *gin.Context)
2.按钮新增(store)
func (*ButtonController) DeleteButton ¶
func (u *ButtonController) DeleteButton(c *gin.Context)
6.删除记录
func (*ButtonController) GetButton ¶
func (s *ButtonController) GetButton(c *gin.Context)
func (*ButtonController) UpdateButton ¶
func (s *ButtonController) UpdateButton(c *gin.Context)
5.按钮更新(update)
type MenuController ¶
type MenuController struct { controller.ResourceController MenuService *service.MenuService `inject:"menuService"` }
func (*MenuController) AfterInitialize ¶
func (m *MenuController) AfterInitialize()
func (*MenuController) CreateMenu ¶
func (m *MenuController) CreateMenu(c *gin.Context)
func (*MenuController) DeleteMenu ¶
func (m *MenuController) DeleteMenu(c *gin.Context)
func (*MenuController) GetMenu ¶
func (m *MenuController) GetMenu(c *gin.Context)
func (*MenuController) GetMenus ¶
func (m *MenuController) GetMenus(c *gin.Context)
func (*MenuController) GetSubMenus ¶
func (m *MenuController) GetSubMenus(c *gin.Context)
func (*MenuController) UpdateMenu ¶
func (m *MenuController) UpdateMenu(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.