|
|
@@ -303,4 +303,16 @@ public class EvalService implements SubsystemService {
|
|
|
}
|
|
|
return JSONObject.parseObject(result);
|
|
|
}
|
|
|
+
|
|
|
+ public JSONObject getExamCodeQuestionAndScoreById(Integer examId) {
|
|
|
+ String uri = "https://eval-server.seec.seecoder.cn/api/exam/" + examId + "/questions/code";
|
|
|
+ String result = null;
|
|
|
+ try {
|
|
|
+ result = httpService.sendGet(uri, new ArrayList<>(), null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return JSONObject.parseObject(result);
|
|
|
+
|
|
|
+ }
|
|
|
}
|