| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package nju.seec.helper.service;
- import nju.seec.helper.dto.LoginUser;
- import nju.seec.helper.dto.NoticeDTO;
- import nju.seec.helper.vo.NoticeVO;
- import org.springframework.data.domain.Page;
- import org.springframework.data.domain.Pageable;
- /**
- * @author cst
- */
- public interface NoticeService {
- /**
- * 创建公告
- *
- * @param user
- * @param noticeDTO
- * @return
- */
- NoticeVO create(LoginUser user, NoticeDTO noticeDTO);
- /**
- * 修改公告
- *
- * @param user
- * @param noticeDTO
- * @return
- */
- NoticeVO modify(LoginUser user, NoticeDTO noticeDTO);
- /**
- * 取得公告
- *
- * @param user
- * @param courseId
- * @param key
- * @param pageable
- * @return
- */
- Page<NoticeVO> getNoticesByCourse(LoginUser user, Long courseId, String key, Pageable pageable);
- /**
- * 删除告示
- *
- * @param user
- * @param noticeId
- */
- void deleteNotice(LoginUser user, Long noticeId);
- }
|