权限设计思路(20)
发布时间:2021-06-07
发布时间:2021-06-07
}
/// <summary>
/// 给模块分功能权限
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="ModuleNo">模块编码</param>
/// <param name="FunctionNo">功能编码</param>
/// <returns>是否成功</returns>
public string AddFunctionRight(BaseUserInfoLog BaseUser, string ModuleNo, List<string> FunctionNo)
{
throw new NotImplementedException();
}
}
2.4权限类
//定义权限类
public interface IModule
{
/// <summary>
/// 模块编码
/// </summary>
string ModuleNo{get;} //模块编码
/// <summary>
/// 模块名称
/// </summary>
string ModuleName{get;}//模块名称
/// <summary>
/// 注册那些权限
/// </summary>
/// <param name="UserNo">用户编码</param>
/// <param name="ModuleNo">模块编码</param>
/// <returns>是否成功</returns>
string RegFunction(string UserNo,string ModuleNo);
void Run();
}
/// <summary>
/// 权限
/// </summary>
public class Right
{