Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPage ¶
func GetPage(c *MenuController) int
Types ¶
type MenuController ¶
type MenuController struct {
beego.Controller
}
func (*MenuController) Addmenu ¶
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 (*MenuController) Deletemenu ¶
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 (*MenuController) Getmenu ¶
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 (*MenuController) ResponseJson ¶
func (this *MenuController) ResponseJson(httpCode, errCode int, data interface{})
func (*MenuController) URLMapping ¶
func (this *MenuController) URLMapping()
func (*MenuController) Updatemenu ¶
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]