mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 11:24:45 +08:00
调整程序框架
This commit is contained in:
@@ -9,7 +9,5 @@ namespace OpenAuth.App.DTO
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
|
||||
public IList<string> UserRoleNames { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,12 +26,13 @@ namespace OpenAuth.App
|
||||
{
|
||||
_menuService = service;
|
||||
}
|
||||
public MenuForUserResponse LoadFor(MenuForUserRequest request)
|
||||
public MenuForUserResponse LoadMenus()
|
||||
{
|
||||
var response = new MenuForUserResponse();
|
||||
foreach (var menu in _menuService.GetMenuFor(request.UserId))
|
||||
var user = LoginCacheApp.GetLogin();
|
||||
if (user != null)
|
||||
{
|
||||
response.Menus.Add(menu);
|
||||
// response.Menus =
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
<Project>{6108da8e-92a1-4abe-b9f5-26d64d55ca2c}</Project>
|
||||
<Name>OpenAuth.Domain</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\OpenAuth.Infrastructure\OpenAuth.Infrastructure.csproj">
|
||||
<Project>{adae08c0-de22-41f7-9f94-0e62ae327c25}</Project>
|
||||
<Name>OpenAuth.Infrastructure</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
Reference in New Issue
Block a user