Răsfoiți Sursa

查询二维码返回值由string改为实体对象

lideyin 6 ani în urmă
părinte
comite
a49ce57385

+ 3 - 2
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/client/OeStudentExamRecordCloudServiceClient.java

@@ -7,6 +7,7 @@ import org.springframework.web.client.RestTemplate;
 import cn.com.qmth.examcloud.core.oe.student.api.OeStudentExamRecordCloudService;
 import cn.com.qmth.examcloud.core.oe.student.api.request.DeleteExamAudioAnswerTempReq;
 import cn.com.qmth.examcloud.core.oe.student.api.request.GetQrCodeReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetQrCodeResp;
 import cn.com.qmth.examcloud.web.redis.RedisClient;
 
 @Service("oeStudentExamRecordCloudService")
@@ -23,8 +24,8 @@ public class OeStudentExamRecordCloudServiceClient extends AbstractCloudClientSu
 	}
 
 	@Override
-	public String getQrCode(GetQrCodeReq req) {
-		return post("examRecord/getQrCode",req,String.class);
+	public GetQrCodeResp getQrCode(GetQrCodeReq req) {
+		return post("examRecord/getQrCode",req,GetQrCodeResp.class);
 	}
 
 }

+ 2 - 1
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/OeStudentExamRecordCloudService.java

@@ -2,6 +2,7 @@ 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.GetQrCodeReq;
+import cn.com.qmth.examcloud.core.oe.student.api.response.GetQrCodeResp;
 
 public interface OeStudentExamRecordCloudService extends CloudService{
 
@@ -10,5 +11,5 @@ public interface OeStudentExamRecordCloudService extends CloudService{
 	 * 获取二维码
 	 * @return
 	 */
-	public String getQrCode(GetQrCodeReq req);
+	public GetQrCodeResp getQrCode(GetQrCodeReq req);
 }

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

@@ -0,0 +1,20 @@
+package cn.com.qmth.examcloud.core.oe.student.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class GetQrCodeResp extends BaseResponse{
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 8596318543653353465L;
+	private String qrCode;
+
+	public String getQrCode() {
+		return qrCode;
+	}
+
+	public void setQrCode(String qrCode) {
+		this.qrCode = qrCode;
+	}
+	
+}