CommentService.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package jnpf.flowable.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.exception.WorkFlowException;
  4. import jnpf.flowable.entity.CommentEntity;
  5. import jnpf.flowable.model.comment.CommentPagination;
  6. import java.util.List;
  7. /**
  8. * @author :JNPF开发平台组
  9. * @version: V3.1.0
  10. * @copyright 引迈信息技术有限公司
  11. * @date :2024/4/24 上午9:07
  12. */
  13. public interface CommentService extends SuperService<CommentEntity> {
  14. /**
  15. * 列表
  16. *
  17. * @param pagination 请求参数
  18. * @return
  19. */
  20. List<CommentEntity> getlist(CommentPagination pagination);
  21. /**
  22. * 列表
  23. *
  24. * @return
  25. */
  26. List<CommentEntity> getList();
  27. /**
  28. * 列表
  29. *
  30. * @return
  31. */
  32. List<CommentEntity> getlist(List<String> idList);
  33. /**
  34. * 信息
  35. *
  36. * @param id 主键值
  37. * @return
  38. */
  39. CommentEntity getInfo(String id);
  40. /**
  41. * 创建
  42. *
  43. * @param entity 实体对象
  44. */
  45. void create(CommentEntity entity) throws WorkFlowException;
  46. /**
  47. * 更新
  48. *
  49. * @param id 主键值
  50. * @param entity 实体对象
  51. * @return
  52. */
  53. void update(String id, CommentEntity entity);
  54. /**
  55. * 删除
  56. *
  57. * @param entity 实体对象
  58. * @return
  59. */
  60. void delete(CommentEntity entity, boolean delComment);
  61. }