/menu/GetMenuAuthority -> /menu/getMenuAuthority
This commit is contained in:
parent
70b6a410d4
commit
122dcf0324
|
@ -81,7 +81,7 @@ func (a *AuthorityMenuApi) AddMenuAuthority(c *gin.Context) {
|
||||||
// @Produce application/json
|
// @Produce application/json
|
||||||
// @Param data body request.GetAuthorityId true "角色ID"
|
// @Param data body request.GetAuthorityId true "角色ID"
|
||||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||||
// @Router /menu/GetMenuAuthority [post]
|
// @Router /menu/getMenuAuthority [post]
|
||||||
func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) {
|
func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) {
|
||||||
var param request.GetAuthorityId
|
var param request.GetAuthorityId
|
||||||
_ = c.ShouldBindJSON(¶m)
|
_ = c.ShouldBindJSON(¶m)
|
||||||
|
|
|
@ -17,7 +17,7 @@ type IdsReq struct {
|
||||||
|
|
||||||
// Get role by id structure
|
// Get role by id structure
|
||||||
type GetAuthorityId struct {
|
type GetAuthorityId struct {
|
||||||
AuthorityId string // 角色ID
|
AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
|
||||||
}
|
}
|
||||||
|
|
||||||
type Empty struct{}
|
type Empty struct{}
|
||||||
|
|
Loading…
Reference in New Issue