ISysNoticeService.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.ruoyi.system.service;
  2. import com.ruoyi.common.core.domain.PageQuery;
  3. import com.ruoyi.common.core.page.TableDataInfo;
  4. import com.ruoyi.system.domain.SysNotice;
  5. import java.util.List;
  6. /**
  7. * 公告 服务层
  8. *
  9. * @author Lion Li
  10. */
  11. public interface ISysNoticeService {
  12. TableDataInfo<SysNotice> selectPageNoticeList(SysNotice notice, PageQuery pageQuery);
  13. TableDataInfo<SysNotice> selectPageNoticeListApp(SysNotice notice, PageQuery pageQuery);
  14. /**
  15. * 查询公告信息
  16. *
  17. * @param noticeId 公告ID
  18. * @return 公告信息
  19. */
  20. SysNotice selectNoticeById(Long noticeId);
  21. /**
  22. * 查询公告列表
  23. *
  24. * @param notice 公告信息
  25. * @return 公告集合
  26. */
  27. List<SysNotice> selectNoticeList(SysNotice notice);
  28. /**
  29. * 新增公告
  30. *
  31. * @param notice 公告信息
  32. * @return 结果
  33. */
  34. int insertNotice(SysNotice notice);
  35. /**
  36. * 修改公告
  37. *
  38. * @param notice 公告信息
  39. * @return 结果
  40. */
  41. int updateNotice(SysNotice notice);
  42. /**
  43. * 删除公告信息
  44. *
  45. * @param noticeId 公告ID
  46. * @return 结果
  47. */
  48. int deleteNoticeById(Long noticeId);
  49. /**
  50. * 批量删除公告信息
  51. *
  52. * @param noticeIds 需要删除的公告ID
  53. * @return 结果
  54. */
  55. int deleteNoticeByIds(Long[] noticeIds);
  56. }