派生自 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
package com.qxueyou.scc.school.action;
 
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
 
import com.qxueyou.scc.base.model.Result;
import com.qxueyou.scc.school.service.IStudentScoreService;
 
/**
 * 用户学分控制层;
 * 
 * @author junliang
 * @createTime 2017-12-10
 */
@Controller
@RequestMapping(value = "/studentScore")
public class StudentScoreController {
    @Autowired
    private IStudentScoreService studentScoreService;
 
    /**
     * 
     * @param classId
     *            班级id
     * @param videoId
     *            视频id
     * @param score
     *            学分
     * @return
     */
    @RequestMapping(value = "/addStudentScore", method = RequestMethod.GET)
    @ResponseBody
    public Result addStudentScore(String classId, String videoId, Integer score) {
 
        return studentScoreService.addStudentScore(classId, videoId, score);
    }
 
    /**
     * 获取学分
     * 
     * @return
     */
    @RequestMapping(value = "/getStudentScore", method = RequestMethod.GET)
    @ResponseBody
    public Result getStudentScore() {
 
        return studentScoreService.getStudentScore();
 
    }
    
    /**
     * 是否学完
     * 
     * @return
     */
    @RequestMapping(value = "/isLearn", method = RequestMethod.GET)
    @ResponseBody
    public Result isLearn(String classId) {
        return studentScoreService.checkStudyStatus(classId);
 
    }
 
}