Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

63 строки
1013 B

  1. package com.simple.service;
  2. import com.github.pagehelper.PageInfo;
  3. import com.simple.domain.po.MallRole;
  4. import java.util.List;
  5. public interface MallRoleService {
  6. /**
  7. * 根据实体查询分页列表
  8. *
  9. * @param record
  10. * @param offset
  11. * @param limit
  12. * @return
  13. */
  14. PageInfo<MallRole> listAsPage(MallRole record, Integer pageIndex, Integer pageSize);
  15. /**
  16. * 根据Id获得实体
  17. *
  18. * @param id
  19. * @return
  20. */
  21. MallRole getById(Long id);
  22. /**
  23. * 保存或更新实体
  24. *
  25. * @param record
  26. */
  27. void saveOrUpdate(MallRole record);
  28. /**
  29. * 根据Id删除实体
  30. *
  31. * @param id
  32. */
  33. void deleteById(Long id);
  34. /**
  35. * 根据userId查找Role集合
  36. * @param userId
  37. * @return
  38. */
  39. List<MallRole> findRoleByUserId(Long userId);
  40. /**
  41. * 根据名称查询数量
  42. * @param name 名称
  43. * @return
  44. */
  45. int countByName(String name, Long id);
  46. }