权限设计思路(18)
发布时间:2021-06-07
发布时间:2021-06-07
/// <returns></returns>
Module GetEntity(BaseUserInfoLog BaseUser, string ModuleNo);
/// <summary>
/// 添加模块
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="ModuleEntity">模块实体</param>
/// <returns>返回是否成功</returns>
string Add(BaseUserInfoLog BaseUser, Module ModuleEntity);
/// <summary>
/// 修改模块
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="ModuleEntity">实体</param>
/// <param name="ModuleNo">模块编码</param>
/// <returns>返回条数</returns>
int Update(BaseUserInfoLog BaseUser, Module ModuleEntity, string ModuleNo); /// <summary>
/// 根据模块的编码删除
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="ModuleNo">模块编码</param>
/// <returns>返回条数</returns>
int Delete(BaseUserInfoLog BaseUser, string ModuleNo);
/// <summary>
/// 给模块分功能权限
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="ModuleNo">模块编码</param>
/// <param name="FunctionNo">功能编码</param>
/// <returns>是否成功</returns>
string AddFunctionRight(BaseUserInfoLog BaseUser, string ModuleNo, List<string> FunctionNo);
}
2.3.2模块管理类
public class ModuleManager:IModuleManager
{
/// <summary>
/// 获得数据列表
/// </summary>
/// <param name="userInfo">操作人</param>
/// <returns>DataTable</returns>