|
@@ -19,7 +19,7 @@ public class PluginController extends BaseController{
|
|
|
@Autowired
|
|
@Autowired
|
|
|
PluginLogic pluginLogic;
|
|
PluginLogic pluginLogic;
|
|
|
|
|
|
|
|
- @RequestMapping(value = UrlConstants.API_DEV + "/plugin/downloadSig", method = RequestMethod.GET)
|
|
|
|
|
|
|
+ @RequestMapping(value = UrlConstants.API_DEV + "plugin/downloadSig", method = RequestMethod.GET)
|
|
|
public String getDownloadSignature(HttpServletRequest request) {
|
|
public String getDownloadSignature(HttpServletRequest request) {
|
|
|
String taskID = request.getParameter("taskID"),
|
|
String taskID = request.getParameter("taskID"),
|
|
|
workerID = request.getParameter("workerID"),
|
|
workerID = request.getParameter("workerID"),
|
|
@@ -33,7 +33,7 @@ public class PluginController extends BaseController{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @RequestMapping(value =UrlConstants.API_DEV + "/plugin/submitSig", method = RequestMethod.GET)
|
|
|
|
|
|
|
+ @RequestMapping(value =UrlConstants.API_DEV + "plugin/submitSig", method = RequestMethod.GET)
|
|
|
public String getSubmitSignature(HttpServletRequest request) {
|
|
public String getSubmitSignature(HttpServletRequest request) {
|
|
|
String taskID = request.getParameter("taskID"),
|
|
String taskID = request.getParameter("taskID"),
|
|
|
workerID = request.getParameter("workerID"),
|
|
workerID = request.getParameter("workerID"),
|
|
@@ -46,7 +46,7 @@ public class PluginController extends BaseController{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @RequestMapping(value =UrlConstants.API_DEV + "/plugin/submitAnswersSig", method = RequestMethod.GET)
|
|
|
|
|
|
|
+ @RequestMapping(value =UrlConstants.API_DEV + "plugin/submitAnswersSig", method = RequestMethod.GET)
|
|
|
public String getSubmitAnswersSignature(HttpServletRequest request) {
|
|
public String getSubmitAnswersSignature(HttpServletRequest request) {
|
|
|
String taskID = request.getParameter("taskID"),
|
|
String taskID = request.getParameter("taskID"),
|
|
|
workerID = request.getParameter("workerID"),
|
|
workerID = request.getParameter("workerID"),
|
|
@@ -59,7 +59,7 @@ public class PluginController extends BaseController{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @RequestMapping(value =UrlConstants.API_DEV + "/plugin/grade", method = RequestMethod.POST)
|
|
|
|
|
|
|
+ @RequestMapping(value =UrlConstants.API_DEV + "plugin/grade", method = RequestMethod.POST)
|
|
|
public boolean addGrade(@RequestBody AddGradeVO addGradeVO,
|
|
public boolean addGrade(@RequestBody AddGradeVO addGradeVO,
|
|
|
@RequestParam(name = "workerId") long workerId,
|
|
@RequestParam(name = "workerId") long workerId,
|
|
|
@RequestParam(name = "caseId") long caseId,
|
|
@RequestParam(name = "caseId") long caseId,
|
|
@@ -68,7 +68,7 @@ public class PluginController extends BaseController{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @RequestMapping(value = "debug", method = RequestMethod.POST)
|
|
|
|
|
|
|
+ @RequestMapping(value = UrlConstants.API_DEV + "plugin/debug", method = RequestMethod.POST)
|
|
|
public boolean addDebugGrade(@RequestParam(name = "score") double score,
|
|
public boolean addDebugGrade(@RequestParam(name = "score") double score,
|
|
|
@RequestParam(name = "workerId") long workerId,
|
|
@RequestParam(name = "workerId") long workerId,
|
|
|
@RequestParam(name = "caseId") long caseId,
|
|
@RequestParam(name = "caseId") long caseId,
|
|
@@ -76,7 +76,7 @@ public class PluginController extends BaseController{
|
|
|
return pluginLogic.addDebugGrade(workerId,taskId,caseId,score);
|
|
return pluginLogic.addDebugGrade(workerId,taskId,caseId,score);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @RequestMapping(value =UrlConstants.API_DEV + "/plugin/version", method = RequestMethod.GET)
|
|
|
|
|
|
|
+ @RequestMapping(value =UrlConstants.API_DEV + "plugin/version", method = RequestMethod.GET)
|
|
|
public String getVersion(@RequestParam(name = "area") String area) {
|
|
public String getVersion(@RequestParam(name = "area") String area) {
|
|
|
return pluginLogic.getVersion(area);
|
|
return pluginLogic.getVersion(area);
|
|
|
}
|
|
}
|