Skip to content

Commit dd46be1

Browse files
author
qimiao
committed
/menu/GetMenuAuthority -> /menu/getMenuAuthority
1 parent 5dd71f4 commit dd46be1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/api/v1/system/sys_menu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (a *AuthorityMenuApi) AddMenuAuthority(c *gin.Context) {
8181
// @Produce application/json
8282
// @Param data body request.GetAuthorityId true "角色ID"
8383
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
84-
// @Router /menu/GetMenuAuthority [post]
84+
// @Router /menu/getMenuAuthority [post]
8585
func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) {
8686
var param request.GetAuthorityId
8787
_ = c.ShouldBindJSON(&param)

server/model/common/request/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type IdsReq struct {
1717

1818
// Get role by id structure
1919
type GetAuthorityId struct {
20-
AuthorityId string // 角色ID
20+
AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
2121
}
2222

2323
type Empty struct{}

0 commit comments

Comments
 (0)