|
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @Author: wangliang
|
|
|
* @Date: 2019/11/4
|
|
|
*/
|
|
|
+//@Api(tags = "试评任务接口controller")
|
|
|
@RestController
|
|
|
@RequestMapping("api/trial")
|
|
|
public class TrialController {
|
|
@@ -29,8 +30,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+// @ApiOperation(value = "开始试评任务接口")
|
|
|
@RequestMapping(value = "startTrial", method = RequestMethod.GET)
|
|
|
- public void startTrial(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void startTrial(
|
|
|
+// @ApiParam(value = "workId", required = true)
|
|
|
+ @RequestParam Long workId,
|
|
|
+// @ApiParam(value = "科目", required = true)
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.startTrial(workId, subject);
|
|
|
}
|
|
|
|
|
@@ -41,8 +47,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+// @ApiOperation(value = "结束试评任务接口")
|
|
|
@RequestMapping(value = "finishTrial", method = RequestMethod.GET)
|
|
|
- public void finishTrial(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void finishTrial(
|
|
|
+// @ApiParam(value = "workId", required = true)
|
|
|
+ @RequestParam Long workId,
|
|
|
+// @ApiParam(value = "科目", required = true)
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.finishTrial(workId, subject);
|
|
|
}
|
|
|
|
|
@@ -53,8 +64,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+// @ApiOperation(value = "检查试评任务接口")
|
|
|
@RequestMapping(value = "checkMissionStatus", method = RequestMethod.GET)
|
|
|
- public void checkMissionStatus(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void checkMissionStatus(
|
|
|
+// @ApiParam(value = "workId", required = true)
|
|
|
+ @RequestParam Long workId,
|
|
|
+// @ApiParam(value = "科目", required = true)
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.checkMissionStatus(workId, subject);
|
|
|
}
|
|
|
}
|