新增删除菜单

This commit is contained in:
2023-06-27 17:00:31 +08:00
parent 195942a4f5
commit c8fd746540
7 changed files with 110 additions and 6 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ func (r *RoleService) PutRole(c *gin.Context, requestRoleId int64, PutRoleReques
// DeleteRole 删除角色-批量
func (r *RoleService) DeleteRole(c *gin.Context, DeleteRoleRequest requests.DeleteRole) (bool, error) {
// 获取当前登陆用户数据
// 获取当前登陆用户角色数据
roleId := c.GetInt64("RoleId")
if roleId == 0 {
return false, errors.New("数据错误")