OpenAuth.Net/OpenAuth.App/ModuleManagerApp.cs

45 lines
1.2 KiB
C#
Raw Normal View History

2017-11-29 20:49:14 +08:00
using System.Collections.Generic;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;
2015-11-21 23:56:39 +08:00
namespace OpenAuth.App
{
public class ModuleManagerApp
{
public IUnitWork _unitWork { get; set; }
2015-11-21 23:56:39 +08:00
2017-10-11 16:19:34 +08:00
public void Delete(string id)
2015-11-21 23:56:39 +08:00
{
// _unitWork.Delete<Module>(id);
2015-11-21 23:56:39 +08:00
}
2015-11-23 18:15:29 +08:00
public void AddOrUpdate(Module vm)
2015-11-21 23:56:39 +08:00
{
// _moduleManService.AddOrUpdate(vm);
2015-11-21 23:56:39 +08:00
}
#region /
/// <summary>
/// 加载特定用户的模块
/// TODO:这里会加载用户及用户角色的所有模块,“为用户分配模块”功能会给人一种混乱的感觉,但可以接受
/// </summary>
/// <param name="userId">The user unique identifier.</param>
2017-10-11 16:19:34 +08:00
public List<Module> LoadForUser(string userId)
2015-11-30 00:12:42 +08:00
{
return null;
}
/// <summary>
/// 加载特定角色的模块
/// </summary>
/// <param name="roleId">The role unique identifier.</param>
2017-10-11 16:19:34 +08:00
public List<Module> LoadForRole(string roleId)
{
return null;
}
#endregion /
2015-11-21 23:56:39 +08:00
}
}