api

package
v0.0.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) GetButtons

func (s *ButtonController) GetButtons(c *gin.Context)

1按钮列表

func (*ButtonController) UpdateButton

func (s *ButtonController) UpdateButton(c *gin.Context)

5.按钮更新(update)

type MenuController struct {
	controller.ResourceController
	MenuService *service.MenuService `inject:"menuService"`
}
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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL