Browse Source

/menu/GetMenuAuthority -> /menu/getMenuAuthority

qimiao 3 years ago
parent
commit
dd46be1a87
2 changed files with 2 additions and 2 deletions
  1. 1 1
      server/api/v1/system/sys_menu.go
  2. 1 1
      server/model/common/request/common.go

+ 1 - 1
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(&param)

+ 1 - 1
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{}