NoticeConfigService.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.usthe.manager.service;
  2. import com.usthe.manager.pojo.entity.NoticeReceiver;
  3. import com.usthe.manager.pojo.entity.NoticeRule;
  4. import org.springframework.data.jpa.domain.Specification;
  5. import java.util.List;
  6. /**
  7. * 消息通知配置接口
  8. * @author tom
  9. * @date 2021/12/16 16:14
  10. */
  11. public interface NoticeConfigService {
  12. /**
  13. * 动态条件查询
  14. * @param specification 查询条件
  15. * @return 查询结果
  16. */
  17. List<NoticeReceiver> getNoticeReceivers(Specification<NoticeReceiver> specification);
  18. /**
  19. * 动态条件查询
  20. * @param specification 查询条件
  21. * @return 查询结果
  22. */
  23. List<NoticeRule> getNoticeRules(Specification<NoticeRule> specification);
  24. /**
  25. * 新增一个通知接收人
  26. * @param noticeReceiver 接收人信息
  27. */
  28. void addReceiver(NoticeReceiver noticeReceiver);
  29. /**
  30. * 修改通知接收人
  31. * @param noticeReceiver 接收人信息
  32. */
  33. void editReceiver(NoticeReceiver noticeReceiver);
  34. /**
  35. * 根据接收人ID删除接收人信息
  36. * @param receiverId 接收人ID
  37. */
  38. void deleteReceiver(Long receiverId);
  39. /**
  40. * 新增通知策略
  41. * @param noticeRule 通知策略
  42. */
  43. void addNoticeRule(NoticeRule noticeRule);
  44. /**
  45. * 修改通知策略
  46. * @param noticeRule 通知策略
  47. */
  48. void editNoticeRule(NoticeRule noticeRule);
  49. /**
  50. * 删除指定的通知策略
  51. * @param ruleId 通知策略ID
  52. */
  53. void deleteNoticeRule(Long ruleId);
  54. }