fix(menu): 更新成功消息提示,添加角色管理页面权限分配说明;优化菜单添加逻辑,增加父菜单存在性和权限检查

This commit is contained in:
pixelmaxQM
2025-07-11 00:14:14 +08:00
parent 6e27e3a114
commit 857ba194e5
4 changed files with 49 additions and 7 deletions

View File

@@ -143,7 +143,7 @@ func (a *AuthorityMenuApi) AddBaseMenu(c *gin.Context) {
err = menuService.AddBaseMenu(menu)
if err != nil {
global.GVA_LOG.Error("添加失败!", zap.Error(err))
response.FailWithMessage("添加失败", c)
response.FailWithMessage("添加失败"+err.Error(), c)
return
}
response.OkWithMessage("添加成功", c)