Pārlūkot izejas kodu

考试记录遍历接口

xiatian 5 gadi atpakaļ
vecāks
revīzija
bac7e2e7c9

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

@@ -0,0 +1,38 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-16 16:20:56.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.oe.student.client;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+import cn.com.qmth.examcloud.web.cloud.CloudClientSupport;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/8/15
+ */
+public abstract class AbstractCloudClientSupport extends CloudClientSupport {
+
+	private static final String APP_NAME = "EC-CORE-OE-STUDENT";
+
+	@Override
+	protected String getRequestMappingPrefix() {
+		return "api/core/oe/student";
+	}
+
+	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);
+	}
+
+}

+ 32 - 0
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/client/ExamRecordDataCloudServiceClient.java

@@ -0,0 +1,32 @@
+package cn.com.qmth.examcloud.core.oe.student.client;
+
+import org.springframework.stereotype.Service;
+
+import cn.com.qmth.examcloud.core.oe.student.api.ExamRecordDataCloudService;
+import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamRecordDataIdsReq;
+import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordDataBatchNumReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetExamRecordDataIdsResp;
+import cn.com.qmth.examcloud.core.oe.student.api.response.UpdateExamRecordDataBatchNumResp;
+
+@Service("examRecordDataCloudService")
+public class ExamRecordDataCloudServiceClient extends AbstractCloudClientSupport
+		implements
+		ExamRecordDataCloudService {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 3745318048361113898L;
+
+    @Override
+    public GetExamRecordDataIdsResp getExamRecordDataIds(GetExamRecordDataIdsReq req) {
+        return post("examRecordData/getExamRecordDataIds", req, GetExamRecordDataIdsResp.class);
+    }
+
+    @Override
+    public UpdateExamRecordDataBatchNumResp updateExamRecordDataBatchNum(UpdateExamRecordDataBatchNumReq req) {
+        return post("examRecordData/updateBatchNum", req, UpdateExamRecordDataBatchNumResp.class);
+    }
+
+
+}

+ 14 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/ExamRecordDataCloudService.java

@@ -0,0 +1,14 @@
+package cn.com.qmth.examcloud.core.oe.student.api;
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamRecordDataIdsReq;
+import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordDataBatchNumReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetExamRecordDataIdsResp;
+import cn.com.qmth.examcloud.core.oe.student.api.response.UpdateExamRecordDataBatchNumResp;
+
+public interface ExamRecordDataCloudService extends CloudService {
+
+    public GetExamRecordDataIdsResp getExamRecordDataIds(GetExamRecordDataIdsReq req);
+    
+    public UpdateExamRecordDataBatchNumResp updateExamRecordDataBatchNum(UpdateExamRecordDataBatchNumReq req);
+}

+ 50 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/GetExamRecordDataIdsReq.java

@@ -0,0 +1,50 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class GetExamRecordDataIdsReq extends BaseRequest {
+
+
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 1558325337383283590L;
+
+    private Long startId;
+    
+    private Long batchNum;
+    
+    private Integer size;
+
+    
+    public Long getStartId() {
+        return startId;
+    }
+
+    
+    public void setStartId(Long startId) {
+        this.startId = startId;
+    }
+
+    
+    public Long getBatchNum() {
+        return batchNum;
+    }
+
+    
+    public void setBatchNum(Long batchNum) {
+        this.batchNum = batchNum;
+    }
+
+    
+    public Integer getSize() {
+        return size;
+    }
+
+    
+    public void setSize(Integer size) {
+        this.size = size;
+    }
+    
+    
+}

+ 42 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/UpdateExamRecordDataBatchNumReq.java

@@ -0,0 +1,42 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class UpdateExamRecordDataBatchNumReq extends BaseRequest {
+
+
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 3015282022472567203L;
+
+    private List<Long> ids;
+    
+    private Long batchNum;
+
+    
+    public List<Long> getIds() {
+        return ids;
+    }
+
+    
+    public void setIds(List<Long> ids) {
+        this.ids = ids;
+    }
+
+    
+    public Long getBatchNum() {
+        return batchNum;
+    }
+
+    
+    public void setBatchNum(Long batchNum) {
+        this.batchNum = batchNum;
+    }
+    
+    
+    
+}

+ 28 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/response/GetExamRecordDataIdsResp.java

@@ -0,0 +1,28 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class GetExamRecordDataIdsResp extends BaseResponse{
+
+
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 6597261005362036592L;
+
+    private List<Long> examRecordDataIds;
+
+    
+    public List<Long> getExamRecordDataIds() {
+        return examRecordDataIds;
+    }
+
+    
+    public void setExamRecordDataIds(List<Long> examRecordDataIds) {
+        this.examRecordDataIds = examRecordDataIds;
+    }
+	
+
+}

+ 14 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/response/UpdateExamRecordDataBatchNumResp.java

@@ -0,0 +1,14 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class UpdateExamRecordDataBatchNumResp extends BaseResponse{
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1420098142358524456L;
+
+	
+
+}