派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
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);
}