权限设计思路(13)
发布时间:2021-06-07
发布时间:2021-06-07
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>返回条数</returns>
int Delete(BaseUserInfoLog BaseUser, string RoleNo);
/// <summary>
/// 批量删除
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>返回条数</returns>
int BatchDelete(BaseUserInfoLog BaseUser, List<string> RoleNo);
/// <summary>
/// 清除用户和角色的关联
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <returns>返回条数</returns>
int ClearRoleUser(BaseUserInfoLog BaseUser, string RoleNo);
/// <summary>
/// 给角色分模块的权限
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleNo">角色编码</param>
/// <param name="ModlueNo">模块编码</param>
/// <returns>是否成功</returns>
string AddRoleModule(BaseUserInfoLog BaseUser, string RoleNo, string ModlueNo); }
2.2.2角色管理类
//实现管理类的方法,如果外部人员直接调用
public class RoleManager:IRoleManager
{
/// <summary>
/// 添加角色
/// </summary>
/// <param name="BaseUser">操作人员</param>
/// <param name="RoleEntity">角色实体</param>
/// <returns>是否成功</returns>
public string Add(BaseUserInfoLog BaseUser, Role RoleEntity)
{
throw new NotImplementedException();