package com.qxueyou.scc.school.service;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import com.qxueyou.scc.base.model.Pager;
|
import com.qxueyou.scc.base.model.Result;
|
import com.qxueyou.scc.school.model.SchArticle;
|
|
/**
|
* 文章接口
|
*
|
* @author zhiyong
|
*
|
*/
|
public interface IArticleService {
|
|
/**
|
* 查询列表数据
|
*
|
* @param type
|
* @return
|
*/
|
List<SchArticle> queryClassListData();
|
|
/**
|
* 查询科目文章list
|
* @param collegeCourseId
|
* @return
|
*/
|
List<Map<String, Object>> queryArticleOrgLst(String collegeCourseId, String subjectId);
|
|
/**
|
* 查询基本信息
|
* @param articleId
|
* @return
|
*/
|
Result queryInfo(String articleId);
|
|
/**
|
* 新增或更新列表数据 班级
|
*
|
* @param articleId
|
* @param name
|
* @return
|
*/
|
Result updateArticle(SchArticle article);
|
|
/**
|
* 新增或更新列表数据 机构
|
*
|
* @return
|
*/
|
Result updateOrgArticle(SchArticle article, String collegeCourseId);
|
|
/**
|
* 删除文章
|
* @param articleIds
|
* @return
|
*/
|
Result deleteArticle(String articleIds);
|
|
/**
|
* 排序
|
*
|
* @param ids
|
* @param index
|
* @return
|
*/
|
Result doitemOrder(List<String> ids, List<Integer> index);
|
|
/**
|
* 删除机构文章信息
|
* @param articleIds
|
* @param delAll
|
* @param orgIds
|
* @param classIds
|
*/
|
Result deleteOrgArticleIds(String[] articleIds, Integer delAll, String orgIds[], String classIds[]);
|
|
/**
|
* 下发机构文件
|
* @param articleId
|
* @param orgId
|
* @param classIds
|
* @param collegeCourseId
|
* @return
|
*/
|
Result insertAppointArticle(String articleId[], String orgId[], String classIds[], String collegeCourseId);
|
|
/**
|
* 获取文章列表
|
*
|
* @param pager
|
* @return
|
*/
|
public Result articleList(Pager pager, String sortType, String sortField, String collegeCourseId, String subjectId);
|
|
/**
|
* 点赞
|
*
|
* @param msgId
|
* @return
|
*/
|
public Result doLike(String commentId);
|
|
/**
|
* 删除评论
|
*
|
* @param msgId
|
* @param commentId
|
* @return
|
*/
|
public Result deleteComment(String articleId, String commentId);
|
|
/**
|
* 评论列表
|
*
|
* @param articleId
|
* @return
|
*/
|
public Result commentList(String articleId);
|
|
/**
|
* 评论
|
*
|
* @param msgId
|
* @param content
|
* @param parentCommentId
|
* @return
|
*/
|
public Result addComment(String articleId, String content, String parentCommentId);
|
|
/**
|
* 观看进度
|
*
|
* @param articleId
|
* @param compDegree
|
* @return
|
*/
|
public Result doSubmitSchedule(String articleId, double compDegree);
|
|
/**
|
* 保存文章接口
|
*
|
* @param article
|
* @return
|
*/
|
public Result saveArticle(SchArticle article);
|
}
|