注册功能、数据库表关系大更新

This commit is contained in:
橙子
2021-11-06 17:10:44 +08:00
parent 8b3339c81d
commit 1066e54369
28 changed files with 361 additions and 947 deletions

View File

@@ -47,7 +47,9 @@ namespace Yi.Framework.Service
{
var role_data = await _Db.Set<role>().Include(u=>u.menus).Where(u => u.id == roleId).FirstOrDefaultAsync();
var menuList = role_data.menus.Where(u => u.is_delete == Normal).ToList();
menuList.ForEach(u => u.roles = null);
return menuList;
}