menu

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine) error

Types

type ApiMenu

type ApiMenu struct {
	// contains filtered or unexported fields
}

func NewSysApi

func NewSysApi(c framework.Container) *ApiMenu

func (*ApiMenu) AddMenu

func (a *ApiMenu) AddMenu(c *gin.Context)

AddMenu godoc @Summary 新增菜单接口 @Security ApiKeyAuth @Description 新增菜单接口 @accept application/json @Produce application/json @Param data body menu.DevopsSysMenu true "菜单" @Tags Menu @Success 200 {object} base.Response @Router /sys/menu/add [post]

func (*ApiMenu) DeleteMenu

func (a *ApiMenu) DeleteMenu(c *gin.Context)

DeleteMenu godoc @Summary 删除菜单接口 @Security ApiKeyAuth @Description 删除菜单接口 @accept application/json @Produce application/json @Param ids body string true "菜单ids" @Tags Menu @Success 200 {object} base.Response @Router /sys/menu/delete [delete]

func (*ApiMenu) GetMenu

func (a *ApiMenu) GetMenu(c *gin.Context)

GetMenu godoc @Summary 获得菜单接口 @Security ApiKeyAuth @Description 获得菜单接口 @accept application/json @Produce application/json @Param id path int true "菜单id" @Tags Menu @Success 200 {object} base.Response @Router /sys/menu/{id} [get]

func (*ApiMenu) ListMenu

func (a *ApiMenu) ListMenu(c *gin.Context)

ListMenu godoc @Summary 获得菜单列表接口 @Security ApiKeyAuth @Description 获得菜单列表接口 @accept application/json @Produce application/json @Param data body base.PageRequest true "页数,页大小,筛选条件" @Tags Menu @Success 200 {object} base.Response @Router /sys/menu/list [post]

func (*ApiMenu) ModifyMenu

func (a *ApiMenu) ModifyMenu(c *gin.Context)

ModifyMenu godoc @Summary 修改菜单接口 @Security ApiKeyAuth @Description 修改菜单接口 @accept application/json @Produce application/json @Param data body menu.DevopsSysMenu true "菜单" @Tags Menu @Success 200 {object} base.Response @Router /sys/menu/modify [post]

Jump to

Keyboard shortcuts

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