You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
879 B

  1. package com.simple.service;
  2. import java.util.*;
  3. import com.github.pagehelper.PageInfo;
  4. import com.simple.domain.po.SysUserRole;
  5. public interface SysUserRoleService {
  6. /**
  7. * 根据实体查询分页列表
  8. *
  9. * @param record
  10. * @param offset
  11. * @param limit
  12. * @return
  13. */
  14. PageInfo<SysUserRole> listAsPage(SysUserRole record, Integer pageIndex, Integer pageSize);
  15. /**
  16. * 根据Id获得实体
  17. *
  18. * @param id
  19. * @return
  20. */
  21. SysUserRole getById(String id);
  22. /**
  23. * 保存或更新实体
  24. *
  25. * @param record
  26. */
  27. void saveOrUpdate(SysUserRole record);
  28. /**
  29. * 根据Id删除实体
  30. *
  31. * @param id
  32. */
  33. void deleteById(String id);
  34. /**
  35. * 批量增加用户对应角色
  36. * @param u2rs
  37. */
  38. void batchInsert(List<SysUserRole> u2rs);
  39. }