|
@@ -1,12 +1,15 @@
|
|
|
package cn.com.qmth.examcloud.core.questions.api.client;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.core.questions.api.ExtractConfigCloudService;
|
|
|
import cn.com.qmth.examcloud.core.questions.api.request.GetPaperReq;
|
|
|
+import cn.com.qmth.examcloud.core.questions.api.request.GetQuestionReq;
|
|
|
import cn.com.qmth.examcloud.core.questions.api.response.GetPaperResp;
|
|
|
+import cn.com.qmth.examcloud.core.questions.api.response.GetQuestionResp;
|
|
|
|
|
|
/**
|
|
|
* @author weiwenhai
|
|
@@ -15,7 +18,8 @@ import cn.com.qmth.examcloud.core.questions.api.response.GetPaperResp;
|
|
|
* @describle 调卷远程调用服务
|
|
|
*
|
|
|
*/
|
|
|
-public class ExtractConfigCloudServiceClient extends ExtractConfigCloudClientSupport implements ExtractConfigCloudService{
|
|
|
+@Service
|
|
|
+public class ExtractConfigCloudServiceClient extends BasicCloudClientSupport implements ExtractConfigCloudService{
|
|
|
|
|
|
private static final long serialVersionUID = 5635276170773870907L;
|
|
|
|
|
@@ -28,7 +32,12 @@ public class ExtractConfigCloudServiceClient extends ExtractConfigCloudClientSup
|
|
|
|
|
|
@Override
|
|
|
public GetPaperResp getPaper(GetPaperReq req) {
|
|
|
- return post("extract_paper/getPaper", req, GetPaperResp.class);
|
|
|
+ return post("extract_config/getPaper", req, GetPaperResp.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public GetQuestionResp getQuestion(GetQuestionReq req) {
|
|
|
+ return post("extract_config/getQuestion", req, GetQuestionResp.class);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -40,5 +49,5 @@ public class ExtractConfigCloudServiceClient extends ExtractConfigCloudClientSup
|
|
|
protected RedisClient getRedisClient() {
|
|
|
return redisClient;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|