NoticeService.java 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package nju.seec.helper.service;
  2. import nju.seec.helper.dto.LoginUser;
  3. import nju.seec.helper.dto.NoticeDTO;
  4. import nju.seec.helper.vo.NoticeVO;
  5. import org.springframework.data.domain.Page;
  6. import org.springframework.data.domain.Pageable;
  7. /**
  8. * @author cst
  9. */
  10. public interface NoticeService {
  11. /**
  12. * 创建公告
  13. *
  14. * @param user
  15. * @param noticeDTO
  16. * @return
  17. */
  18. NoticeVO create(LoginUser user, NoticeDTO noticeDTO);
  19. /**
  20. * 修改公告
  21. *
  22. * @param user
  23. * @param noticeDTO
  24. * @return
  25. */
  26. NoticeVO modify(LoginUser user, NoticeDTO noticeDTO);
  27. /**
  28. * 取得公告
  29. *
  30. * @param user
  31. * @param courseId
  32. * @param key
  33. * @param pageable
  34. * @return
  35. */
  36. Page<NoticeVO> getNoticesByCourse(LoginUser user, Long courseId, String key, Pageable pageable);
  37. /**
  38. * 删除告示
  39. *
  40. * @param user
  41. * @param noticeId
  42. */
  43. void deleteNotice(LoginUser user, Long noticeId);
  44. }