menu

package
v0.0.0-...-17112b8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPage

func GetPage(c *MenuController) int

Types

type Menu struct {
	Id     int    `json:"id"`
	Name   string `json:"name"`
	Path   string `json:"path"`
	Method string `json:"method"`
}
type MenuController struct {
	beego.Controller
}
func (this *MenuController) Addmenu()

@Summary 添加菜单 @Tags 添加菜单 @Description 添加菜单 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /menu [post]

func (this *MenuController) Deletemenu()

@Summary 删除菜单 @Tags 删除菜单 @Description 删除菜单 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /menu/:id [delete]

func (this *MenuController) Getmenu()

@Summary 查询菜单 @Tags 查询菜单 @Description 查询菜单 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /menu [get]

func (this *MenuController) ResponseJson(httpCode, errCode int, data interface{})
func (this *MenuController) URLMapping()
func (this *MenuController) Updatemenu()

@Summary 更新菜单 @Tags 更新菜单 @Description 更新菜单 @Accept json @Produce json @Failure 400 {string} json "{"code":400, "data":null,"msg":"请求参数错误"}" @Failure 404 {string} json "{ "code": 404, "data":null,"msg":"请求参数错误"}" @Success 200 {string} json "{ "code": 200, "data": { "token": "xxx" }, "msg": "ok" }" @router /menu [put]

Jump to

Keyboard shortcuts

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