package com.qxueyou.scc.admin.notice.service;
|
|
import com.qxueyou.scc.base.model.Result;
|
import com.qxueyou.scc.notice.model.Notice;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
public interface INoticeService {
|
|
/**
|
* ÐÂÔö֪ͨ
|
*
|
* @param name ֪ͨÃû³Æ
|
* @param content ֪ͨ½éÉÜ
|
* @param type ֪ͨÀàÐÍ
|
* @param classIds °à¼¶ids
|
* @return
|
*/
|
Result add(String name, String content, String type, List<String> classIds);
|
|
/**
|
* ÐÞ¸Ä֪ͨ
|
*
|
* @param noticeId ֪ͨID
|
* @param name ֪ͨÃû³Æ
|
* @param content ֪ͨ½éÉÜ
|
* @param type ֪ͨÀàÐÍ
|
* @param classIds °à¼¶ids
|
* @return
|
*/
|
Result update(String noticeId, String name, String content, String type, List<String> classIds);
|
|
/**
|
* ²éѯ֪ͨ
|
*
|
* @param noticeId ֪ͨId
|
* @return
|
*/
|
Notice read(String noticeId);
|
|
/**
|
* ²éѯ֪ͨ
|
*
|
* @param noticeIdLst ֪ͨId
|
* @return
|
*/
|
List<Notice> readByStatus(Collection<String> noticeIdLst, short status);
|
|
/**
|
* ²éѯ֪ͨ
|
*
|
* @param keyword ²éѯ¹Ø¼ü×Ö
|
* @param pageNum Ò³Âë
|
* @param pageSize ÿҳÊý¾Ý´óС
|
* @param sort ÅÅÐò
|
* @return
|
*/
|
List<Notice> list(String keyword, Integer pageNum, Integer pageSize, String createId, String sort);
|
|
/**
|
* ²éѯ֪ͨ×ÜÊý
|
*
|
* @param keyword ²éѯ¹Ø¼ü×Ö
|
* @return
|
*/
|
int listCount(String keyword, String createId);
|
|
/**
|
* ɾ³ý֪ͨ
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result delete(String noticeId);
|
|
/**
|
* ɾ³ý֪ͨ
|
*
|
* @param noticeIds ֪ͨIDÊý×é
|
* @return
|
*/
|
Result delete(String[] noticeIds);
|
|
/**
|
* ·¢²¼Í¨Öª
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result doIssue(String noticeId);
|
|
/**
|
* ·¢²¼Í¨Öª
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result doIssue(String[] noticeIds);
|
|
/**
|
* È¡Ïû֪ͨ
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result doCancel(String noticeId);
|
|
/**
|
* È¡Ïû֪ͨ
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result doCancel(String[] noticeIds);
|
|
|
/**
|
* ¶Áȡ֪ͨ°à¼¶
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
List<String> getNoticeClasses(String noticeId);
|
|
/**
|
* ²é¿´Í¨Öª
|
*
|
* @param noticeId ֪ͨID
|
* @return
|
*/
|
Result view(String noticeId);
|
}
|