v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMenu

func AddMenu(c *gin.Context)

@Summary 增加菜单 @Tags menu @Accept json @Produce json @Param body body models.Menu true "body" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/menus [POST]

func AddRole

func AddRole(c *gin.Context)

@Summary 增加角色 @Tags role @Accept json @Produce json @Param body body models.Role true "body" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/roles [POST]

func DeleteMenu

func DeleteMenu(c *gin.Context)

@Summary 删除菜单 @Tags menu @Accept json @Produce json @Param id path string true "id" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/menus/:id [DELETE]

func DeleteRole

func DeleteRole(c *gin.Context)

@Summary 删除角色 @Tags role @Accept json @Produce json @Param id path string true "id" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/roles/:id [DELETE]

func EditMenu

func EditMenu(c *gin.Context)

@Summary 更新菜单 @Tags menu @Accept json @Produce json @Param id path string true "id" @Param body body models.Menu true "body" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/menus/:id [PUT]

func EditRole

func EditRole(c *gin.Context)

@Summary 更新角色 @Tags role @Accept json @Produce json @Param id path string true "id" @Param body body models.Role true "body" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/roles/:id [PUT]

func GetMenu

func GetMenu(c *gin.Context)

@Summary 获取单个菜单 @Tags menu @Accept json @Produce json @Param id path string true "id" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/menus/:id [GET]

func GetMenus

func GetMenus(c *gin.Context)

@Summary 获取所有菜单 @Tags menu @Accept json @Produce json @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/menus [GET]

func GetRole

func GetRole(c *gin.Context)

@Summary 获取单个角色 @Tags role @Accept json @Produce json @Param id path string true "id" @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/roles/:id [GET]

func GetRoles

func GetRoles(c *gin.Context)

@Summary 获取所有角色 @Tags role @Accept json @Produce json @Success 200 {string} json "{ "code": 200, "data": {}, "msg": "ok" }" @Router /api/v1/roles [GET]

Types

This section is empty.

Jump to

Keyboard shortcuts

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