|
|
@@ -2,6 +2,7 @@ package cn.seecoder.seecoderportalserver.web.rest;
|
|
|
|
|
|
import cn.seecoder.seecoderportalserver.service.ExamService;
|
|
|
import cn.seecoder.seecoderportalserver.utility.OkResponse;
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -21,8 +22,8 @@ public class ExamController {
|
|
|
// return OkResponse.of(examService.getCoderRecommendExams());
|
|
|
// }
|
|
|
|
|
|
-// @GetMapping("eval/exam/recommend")
|
|
|
-// public OkResponse<JSONObject> getEvalRecommendExams() {
|
|
|
-// return OkResponse.of(examService.getEvalRecommendExams());
|
|
|
-// }
|
|
|
+ @GetMapping("eval/exam/recommend")
|
|
|
+ public OkResponse<JSONArray> getEvalRecommendExams() {
|
|
|
+ return OkResponse.of(examService.getEvalRecommendExams());
|
|
|
+ }
|
|
|
}
|