Browse Source

swagger 文档描述修复

main
klausY 5 years ago
parent
commit
0e186679f4
  1. 8
      QMPlusServer/controller/api/menu.go

8
QMPlusServer/controller/api/menu.go

@ -96,7 +96,7 @@ type AddMenuAuthorityInfo struct {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body modelInterface.AddMenuAuthorityInfo true "增加menu和角色关联关系"
// @Param data body api.AddMenuAuthorityInfo true "增加menu和角色关联关系"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /menu/addMenuAuthority [post] // @Router /menu/addMenuAuthority [post]
func AddMenuAuthority(c *gin.Context) { func AddMenuAuthority(c *gin.Context) {
@ -119,7 +119,7 @@ type AuthorityIdInfo struct {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body modelInterface.AuthorityIdInfo true "增加menu和角色关联关系"
// @Param data body api.AuthorityIdInfo true "增加menu和角色关联关系"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /menu/addMenuAuthority [post] // @Router /menu/addMenuAuthority [post]
func GetMenuAuthority(c *gin.Context) { func GetMenuAuthority(c *gin.Context) {
@ -133,16 +133,16 @@ func GetMenuAuthority(c *gin.Context) {
} }
} }
type IdInfo struct { type IdInfo struct {
Id float64 Id float64
} }
// @Tags menu // @Tags menu
// @Summary 获取指定角色menu // @Summary 获取指定角色menu
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body modelInterface.IdInfo true "删除菜单"
// @Param data body api.IdInfo true "删除菜单"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /menu/deleteBaseMenu [post] // @Router /menu/deleteBaseMenu [post]
func DeleteBaseMenu(c *gin.Context) { func DeleteBaseMenu(c *gin.Context) {

Loading…
Cancel
Save