|
@@ -6,24 +6,24 @@ import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.ExamRecordCloudService;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.api.request.ExamRecordReq;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.api.response.ExamRecordResp;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.request.CheckExamIsStartedReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.response.CheckExamIsStartedResp;
|
|
|
|
|
|
|
|
|
@Service("examRecordCloudService")
|
|
|
public class ExamRecordCloudServiceClient extends AdminCloudClientSupport implements ExamRecordCloudService {
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private static final long serialVersionUID = 6596862028883396367L;
|
|
|
+
|
|
|
@Autowired
|
|
|
private RestTemplate restTemplate;
|
|
|
|
|
|
@Autowired
|
|
|
private RedisClient redisClient;
|
|
|
|
|
|
- @Override
|
|
|
- public ExamRecordResp checkExamIsStarted(ExamRecordReq examRecordReq) {
|
|
|
- return post("",examRecordReq,ExamRecordResp.class);
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
protected RestTemplate getRestTemplate() {
|
|
|
return restTemplate;
|
|
@@ -34,4 +34,9 @@ public class ExamRecordCloudServiceClient extends AdminCloudClientSupport implem
|
|
|
return redisClient;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public CheckExamIsStartedResp checkExamIsStarted(CheckExamIsStartedReq examRecordReq) {
|
|
|
+ return post("/checkExamIsStarted", examRecordReq,CheckExamIsStartedResp.class);
|
|
|
+ }
|
|
|
+
|
|
|
}
|