From dd46be1a874511a542cdbde6dcc5d0d8da03769d Mon Sep 17 00:00:00 2001 From: qimiao <303176530@qq.com> Date: Mon, 16 Aug 2021 19:34:42 +0800 Subject: [PATCH] /menu/GetMenuAuthority -> /menu/getMenuAuthority --- server/api/v1/system/sys_menu.go | 2 +- server/model/common/request/common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/v1/system/sys_menu.go b/server/api/v1/system/sys_menu.go index 0335d0b9..f7408bb5 100644 --- a/server/api/v1/system/sys_menu.go +++ b/server/api/v1/system/sys_menu.go @@ -81,7 +81,7 @@ func (a *AuthorityMenuApi) AddMenuAuthority(c *gin.Context) { // @Produce application/json // @Param data body request.GetAuthorityId true "角色ID" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" -// @Router /menu/GetMenuAuthority [post] +// @Router /menu/getMenuAuthority [post] func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) { var param request.GetAuthorityId _ = c.ShouldBindJSON(¶m) diff --git a/server/model/common/request/common.go b/server/model/common/request/common.go index 5dbfcb45..129c6d7e 100644 --- a/server/model/common/request/common.go +++ b/server/model/common/request/common.go @@ -17,7 +17,7 @@ type IdsReq struct { // Get role by id structure type GetAuthorityId struct { - AuthorityId string // 角色ID + AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID } type Empty struct{} -- GitLab