图书馆智能管理系统
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.

68 lines
1.6 KiB

5 months ago
  1. package ${package}.service;
  2. import ${package}.domain.${className};
  3. import ${package}.service.dto.${className}Dto;
  4. import ${package}.service.dto.${className}QueryCriteria;
  5. import org.springframework.data.domain.Pageable;
  6. import java.util.Map;
  7. import java.util.List;
  8. import java.io.IOException;
  9. import javax.servlet.http.HttpServletResponse;
  10. /**
  11. * @website https://yxk-admin.vip
  12. * @description 服务接口
  13. * @author ${author}
  14. * @date ${date}
  15. **/
  16. public interface ${className}Service {
  17. /**
  18. * 查询数据分页
  19. * @param criteria 条件
  20. * @param pageable 分页参数
  21. * @return Map<String,Object>
  22. */
  23. Map<String,Object> queryAll(${className}QueryCriteria criteria, Pageable pageable);
  24. /**
  25. * 查询所有数据不分页
  26. * @param criteria 条件参数
  27. * @return List<${className}Dto>
  28. */
  29. List<${className}Dto> queryAll(${className}QueryCriteria criteria);
  30. /**
  31. * 根据ID查询
  32. * @param ${pkChangeColName} ID
  33. * @return ${className}Dto
  34. */
  35. ${className}Dto findById(${pkColumnType} ${pkChangeColName});
  36. /**
  37. * 创建
  38. * @param resources /
  39. * @return ${className}Dto
  40. */
  41. ${className}Dto create(${className} resources);
  42. /**
  43. * 编辑
  44. * @param resources /
  45. */
  46. void update(${className} resources);
  47. /**
  48. * 多选删除
  49. * @param ids /
  50. */
  51. void deleteAll(${pkColumnType}[] ids);
  52. /**
  53. * 导出数据
  54. * @param all 待导出的数据
  55. * @param response /
  56. * @throws IOException /
  57. */
  58. void download(List<${className}Dto> all, HttpServletResponse response) throws IOException;
  59. }