调整程序框架

This commit is contained in:
yubaolee
2015-05-23 12:10:53 +08:00
parent b4fc05a823
commit d2641d40fa
44 changed files with 434 additions and 635 deletions

View File

@@ -9,7 +9,5 @@ namespace OpenAuth.App.DTO
{
public string UserId { get; set; }
public string UserName { get; set; }
public IList<string> UserRoleNames { get; set; }
}
}

View File

@@ -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;
}

View File

@@ -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.