|
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @Author: wangliang
|
|
|
* @Date: 2019/11/4
|
|
|
*/
|
|
|
+
|
|
|
@RestController
|
|
|
@RequestMapping("api/trial")
|
|
|
public class TrialController {
|
|
@@ -29,8 +30,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+
|
|
|
@RequestMapping(value = "startTrial", method = RequestMethod.GET)
|
|
|
- public void startTrial(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void startTrial(
|
|
|
+
|
|
|
+ @RequestParam Long workId,
|
|
|
+
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.startTrial(workId, subject);
|
|
|
}
|
|
|
|
|
@@ -41,8 +47,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+
|
|
|
@RequestMapping(value = "finishTrial", method = RequestMethod.GET)
|
|
|
- public void finishTrial(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void finishTrial(
|
|
|
+
|
|
|
+ @RequestParam Long workId,
|
|
|
+
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.finishTrial(workId, subject);
|
|
|
}
|
|
|
|
|
@@ -53,8 +64,13 @@ public class TrialController {
|
|
|
* @param subject
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
+
|
|
|
@RequestMapping(value = "checkMissionStatus", method = RequestMethod.GET)
|
|
|
- public void checkMissionStatus(@RequestParam Long workId, @RequestParam Subject subject) throws Exception {
|
|
|
+ public void checkMissionStatus(
|
|
|
+
|
|
|
+ @RequestParam Long workId,
|
|
|
+
|
|
|
+ @RequestParam Subject subject) throws Exception {
|
|
|
trialService.checkMissionStatus(workId, subject);
|
|
|
}
|
|
|
}
|