权限设计思路(16)
发布时间:2021-06-07
发布时间:2021-06-07
/// <returns>返回条数</returns>
public int ClearRoleUser(BaseUserInfoLog BaseUser, string RoleNo)
{
throw new NotImplementedException();
}
/// <summary>
/// 给角色分模块的权限
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <param name="ModlueNo">模块编码</param>
/// <returns>是否成功</returns>
public string AddRoleModule(BaseUserInfoLog BaseUser, string RoleNo, string ModlueNo) {
throw new NotImplementedException();
}
}
2.3模块类
//定义模块类
public class Module : IModule
{
/// <summary>
/// 模块路径
/// </summary>
private string URL;//模块路径
/// <summary>
/// 是否能使用
/// </summary>
private string State;//是否允许使用
private Right ModuleRight; //权限
/// <summary>
/// 注册那些权限
/// </summary>
/// <param name="UserNo">用户编码</param>
/// <param name="ModuleNo">模块编码</param>
/// <returns>是否成功</returns>
public string RegerFunction(string UserNo, string ModuleNo)
{
throw new NotImplementedException();
}