Forráskód Böngészése

oetask的RPC方法完善

lideyin 5 éve
szülő
commit
0f2d8a68b3

+ 31 - 0
examcloud-core-oe-task-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/task/client/AbstractCloudClientSupport.java

@@ -0,0 +1,31 @@
+package cn.com.qmth.examcloud.core.oe.task.client;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+import cn.com.qmth.examcloud.web.cloud.CloudClientSupport;
+
+/**
+ * @author WANGWEI
+ *
+ */
+public abstract class AbstractCloudClientSupport extends CloudClientSupport {
+
+	private static final String APP_NAME = "EC-CORE-OE-FACE";
+
+	@Override
+	protected String getRequestMappingPrefix() {
+		return "api/core/oe/student/face";
+	}
+
+	protected void post(String requestMappingSuffix, BaseRequest body) {
+		super.post(APP_NAME, requestMappingSuffix, body);
+	}
+
+	protected void post(String requestMappingSuffix) {
+		super.post(APP_NAME, requestMappingSuffix);
+	}
+
+	protected <T> T post(String requestMappingSuffix, BaseRequest body, Class<T> responseType) {
+		return super.post(APP_NAME, requestMappingSuffix, body, responseType);
+	}
+
+}

+ 23 - 0
examcloud-core-oe-task-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/task/client/ExamCaptureCloudServiceClient.java

@@ -0,0 +1,23 @@
+package cn.com.qmth.examcloud.core.oe.task.client;
+
+import cn.com.qmth.examcloud.core.oe.student.face.api.ExamCaptureCloudService;
+import cn.com.qmth.examcloud.core.oe.student.face.api.request.SaveExamCaptureSyncCompareResultReq;
+import org.springframework.stereotype.Service;
+
+/**
+ * @Description
+ * @Author lideyin
+ * @Date 2019/10/12 10:52
+ * @Version 1.0
+ */
+@Service("examCaptureCloudService")
+public class ExamCaptureCloudServiceClient extends AbstractCloudClientSupport
+        implements
+        ExamCaptureCloudService {
+    private static final String APP_NAME = "EC-CORE-OE-FACE";
+
+    @Override
+    public void saveExamCaptureSyncCompareResult(SaveExamCaptureSyncCompareResultReq request) {
+        post("examCapture/saveExamCaptureSyncCompareResult",request);
+    }
+}

+ 17 - 0
examcloud-core-oe-task-api/src/main/java/cn/com/qmth/examcloud/core/oe/task/api/ExamCaptureCloudService.java

@@ -0,0 +1,17 @@
+package cn.com.qmth.examcloud.core.oe.task.api;
+
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+import cn.com.qmth.examcloud.core.oe.task.api.request.SaveExamCaptureSyncCompareResultReq;
+
+/**
+ * @Description 考试抓拍云服务接口
+ * @Author lideyin
+ * @Date 2019/10/12 10:37
+ * @Version 1.0
+ */
+public interface ExamCaptureCloudService extends CloudService {
+    //保存同步比较的抓拍照片结果
+    void saveExamCaptureSyncCompareResult(SaveExamCaptureSyncCompareResultReq request);
+
+}

+ 28 - 0
examcloud-core-oe-task-api/src/main/java/cn/com/qmth/examcloud/core/oe/task/api/request/SaveExamCaptureSyncCompareResultReq.java

@@ -0,0 +1,28 @@
+package cn.com.qmth.examcloud.core.oe.task.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+/**
+ * 清理考试中的考试记录
+ */
+public class SaveExamCaptureSyncCompareResultReq extends BaseRequest {
+    private static final long serialVersionUID = -6717698237605934610L;
+    private Long studentId;
+    private Long examRecordDataId;
+
+    public Long getStudentId() {
+        return studentId;
+    }
+
+    public void setStudentId(Long studentId) {
+        this.studentId = studentId;
+    }
+
+    public Long getExamRecordDataId() {
+        return examRecordDataId;
+    }
+
+    public void setExamRecordDataId(Long examRecordDataId) {
+        this.examRecordDataId = examRecordDataId;
+    }
+}