1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using Dto;
- using Model;
- using Model.Base;
- namespace Services
- {
- public interface ISysUserRoleService : IBaseService<SysUserRole>
- {
- public int CountUserRoleByRoleId(long roleId);
- /// <summary>
- /// 删除用户角色
- /// </summary>
- /// <param name="userId"></param>
- /// <returns></returns>
- public int DeleteUserRoleByUserId(int userId);
- /// <summary>
- /// 批量删除角色对应用户
- /// </summary>
- /// <param name="roleId"></param>
- /// <param name="userIds"></param>
- /// <returns></returns>
- public int DeleteRoleUserByUserIds(long roleId, List<long> userIds);
- /// <summary>
- /// 添加用户角色
- /// </summary>
- /// <param name="sysUsers"></param>
- /// <returns></returns>
- public int AddUserRole(List<SysUserRole> sysUsers);
- /// <summary>
- /// 获取用户数据根据角色id
- /// </summary>
- /// <param name="roleId"></param>
- /// <returns></returns>
- public List<SysUser> GetSysUsersByRoleId(long roleId);
- /// <summary>
- /// 获取用户数据根据角色id
- /// </summary>
- /// <param name="roleUserQueryDto"></param>
- /// <returns></returns>
- public PagedInfo<SysUser> GetSysUsersByRoleId(RoleUserQueryDto roleUserQueryDto);
- /// <summary>
- /// 获取尚未指派的用户数据根据角色id
- /// </summary>
- /// <param name="roleUserQueryDto"></param>
- /// <returns></returns>
- public PagedInfo<SysUser> GetExcludedSysUsersByRoleId(RoleUserQueryDto roleUserQueryDto);
- /// <summary>
- /// 新增用户角色信息
- /// </summary>
- /// <param name="user"></param>
- /// <returns></returns>
- public int InsertUserRole(SysUser user);
- /// <summary>
- /// 新增加角色用户
- /// </summary>
- /// <param name="roleUsersCreateDto"></param>
- /// <returns></returns>
- public int InsertRoleUser(RoleUsersCreateDto roleUsersCreateDto);
- }
- }
|