2015-05-22 17:45:18 +08:00
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// Assembly : OpenAuth.App
|
|
|
|
|
// Author : yubaolee
|
|
|
|
|
// Created : 05-19-2015
|
|
|
|
|
//
|
|
|
|
|
// Last Modified By : yubaolee
|
|
|
|
|
// Last Modified On : 05-20-2015
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// <copyright file="MenuApp.cs" company="Microsoft">
|
|
|
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
// </copyright>
|
|
|
|
|
// <summary>菜单服务</summary>
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using OpenAuth.App.DTO;
|
|
|
|
|
using OpenAuth.Domain.Model;
|
|
|
|
|
using OpenAuth.Domain.Service;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.App
|
|
|
|
|
{
|
|
|
|
|
public class MenuApp
|
|
|
|
|
{
|
|
|
|
|
private MenuService _menuService;
|
|
|
|
|
|
|
|
|
|
public MenuApp(MenuService service)
|
|
|
|
|
{
|
|
|
|
|
_menuService = service;
|
|
|
|
|
}
|
2015-05-23 12:10:53 +08:00
|
|
|
|
public MenuForUserResponse LoadMenus()
|
2015-05-22 17:45:18 +08:00
|
|
|
|
{
|
|
|
|
|
var response = new MenuForUserResponse();
|
2015-05-23 12:10:53 +08:00
|
|
|
|
var user = LoginCacheApp.GetLogin();
|
|
|
|
|
if (user != null)
|
2015-05-22 17:45:18 +08:00
|
|
|
|
{
|
2015-05-23 12:10:53 +08:00
|
|
|
|
// response.Menus =
|
2015-05-22 17:45:18 +08:00
|
|
|
|
}
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|