|
@@ -9,8 +9,10 @@ package cn.com.qmth.examcloud.core.oe.admin.client;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.ExamStudentCloudService;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.api.request.SyncExamStudentReq;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.api.response.SyncExamStudentResp;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.request.ExamStudentSyncAllDataReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.request.ExamStudentSyncPartDataReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.response.ExamStudentSyncAllDataResp;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.api.response.ExamStudentSyncPartDataResp;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
@@ -30,8 +32,13 @@ public class ExamStudentCloudServiceClient extends AdminCloudClientSupport imple
|
|
|
private RedisClient redisClient;
|
|
|
|
|
|
@Override
|
|
|
- public SyncExamStudentResp syncExamStudent(SyncExamStudentReq examStudent) {
|
|
|
- return post("exam/student/sync/data", examStudent, SyncExamStudentResp.class);
|
|
|
+ public ExamStudentSyncAllDataResp syncExamStudentAllData(ExamStudentSyncAllDataReq req) {
|
|
|
+ return post("exam/student/sync/all/data", req, ExamStudentSyncAllDataResp.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ExamStudentSyncPartDataResp syncExamStudentPartData(ExamStudentSyncPartDataReq req) {
|
|
|
+ return post("exam/student/sync/part/data", req, ExamStudentSyncPartDataResp.class);
|
|
|
}
|
|
|
|
|
|
@Override
|