初始化数据库

This commit is contained in:
lzw
2021-10-23 18:46:07 +08:00
parent 49afd9395f
commit 26495a974d
4 changed files with 156 additions and 4 deletions

View File

@@ -169,5 +169,10 @@ namespace Yi.Framework.Service
}
return menu_data;
}
public async Task<menu> GetMenuByUserId(string router)
{
return await _Db.Set<menu>().Include(u => u.children).ThenInclude(u => u.mould)
.Where(u => u.router==router&&u.is_delete == (short)Common.Enum.DelFlagEnum.Normal && u.is_delete == (short)Common.Enum.ShowFlagEnum.Show).FirstOrDefaultAsync();
}
}
}