IUserRoleDao.java 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.ruoyi.project.system.user.dao;
  2. import java.util.List;
  3. import com.ruoyi.project.system.user.domain.UserRole;
  4. /**
  5. * 用户表 数据层
  6. *
  7. * @author ruoyi
  8. */
  9. public interface IUserRoleDao
  10. {
  11. /**
  12. * 通过用户ID删除用户和角色关联
  13. *
  14. * @param userId 用户ID
  15. * @return 结果
  16. */
  17. public int deleteUserRoleByUserId(Long userId);
  18. /**
  19. * 批量删除用户和角色关联
  20. *
  21. * @param ids 需要删除的数据ID
  22. * @return 结果
  23. */
  24. public int deleteUserRole(Long[] ids);
  25. /**
  26. * 通过角色ID查询角色使用数量
  27. *
  28. * @param roleId 角色ID
  29. * @return 结果
  30. */
  31. public int selectCountUserRoleByRoleId(Long roleId);
  32. /**
  33. * 批量新增用户角色信息
  34. *
  35. * @param userRoleList 用户角色列表
  36. * @return 结果
  37. */
  38. public int batchUserRole(List<UserRole> userRoleList);
  39. }