wangwei 6 yıl önce
ebeveyn
işleme
6902d9874c

+ 4 - 4
examcloud-core-basic-api-client/src/main/java/cn/com/qmth/examcloud/core/basic/api/client/StudentCloudServiceClient.java

@@ -7,9 +7,9 @@ import org.springframework.web.client.RestTemplate;
 import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
 import cn.com.qmth.examcloud.core.basic.api.StudentCloudService;
 import cn.com.qmth.examcloud.core.basic.api.request.GetStudentReq;
-import cn.com.qmth.examcloud.core.basic.api.request.InsertOrUpdateStudentReq;
+import cn.com.qmth.examcloud.core.basic.api.request.SaveStudentReq;
 import cn.com.qmth.examcloud.core.basic.api.response.GetStudentResp;
-import cn.com.qmth.examcloud.core.basic.api.response.InsertOrUpdateStudentResp;
+import cn.com.qmth.examcloud.core.basic.api.response.SaveStudentResp;
 
 @Service
 public class StudentCloudServiceClient extends BasicCloudClientSupport
@@ -35,8 +35,8 @@ public class StudentCloudServiceClient extends BasicCloudClientSupport
 	}
 
 	@Override
-	public InsertOrUpdateStudentResp insertOrUpdateStudent(InsertOrUpdateStudentReq studentReq) {
-		return post("student/insertOrUpdateStudent", studentReq, InsertOrUpdateStudentResp.class);
+	public SaveStudentResp saveStudent(SaveStudentReq studentReq) {
+		return post("student/insertOrUpdateStudent", studentReq, SaveStudentResp.class);
 	}
 
 	@Override

+ 3 - 3
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/StudentCloudService.java

@@ -2,9 +2,9 @@ package cn.com.qmth.examcloud.core.basic.api;
 
 import cn.com.qmth.examcloud.commons.web.cloud.api.CloudService;
 import cn.com.qmth.examcloud.core.basic.api.request.GetStudentReq;
-import cn.com.qmth.examcloud.core.basic.api.request.InsertOrUpdateStudentReq;
+import cn.com.qmth.examcloud.core.basic.api.request.SaveStudentReq;
 import cn.com.qmth.examcloud.core.basic.api.response.GetStudentResp;
-import cn.com.qmth.examcloud.core.basic.api.response.InsertOrUpdateStudentResp;
+import cn.com.qmth.examcloud.core.basic.api.response.SaveStudentResp;
 
 /**
  * 学生接口服务
@@ -22,7 +22,7 @@ public interface StudentCloudService extends CloudService {
 	 * @author WANGWEI
 	 * @param req
 	 */
-	InsertOrUpdateStudentResp insertOrUpdateStudent(InsertOrUpdateStudentReq req);
+	SaveStudentResp saveStudent(SaveStudentReq req);
 
 	GetStudentResp getStudent(GetStudentReq req);
 

+ 1 - 1
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/request/InsertOrUpdateStudentReq.java → examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/request/SaveStudentReq.java

@@ -2,7 +2,7 @@ package cn.com.qmth.examcloud.core.basic.api.request;
 
 import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
 
-public class InsertOrUpdateStudentReq extends BaseRequest {
+public class SaveStudentReq extends BaseRequest {
 
 	private static final long serialVersionUID = 9066273303019460160L;
 

+ 59 - 59
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/response/InsertOrUpdateStudentResp.java → examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/response/SaveStudentResp.java

@@ -1,59 +1,59 @@
-package cn.com.qmth.examcloud.core.basic.api.response;
-
-import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
-
-/**
- * 类注释
- *
- * @author WANGWEI
- * @date 2018年6月29日
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
- */
-public class InsertOrUpdateStudentResp extends BaseResponse {
-
-	/**
-	 * 属性注释
-	 */
-	private static final long serialVersionUID = 2263704597882102664L;
-
-	private Long studentId;
-
-	private Long rootOrgId;
-
-	private Long orgId;
-
-	private String orgName;
-
-	public Long getStudentId() {
-		return studentId;
-	}
-
-	public void setStudentId(Long studentId) {
-		this.studentId = studentId;
-	}
-
-	public Long getRootOrgId() {
-		return rootOrgId;
-	}
-
-	public void setRootOrgId(Long rootOrgId) {
-		this.rootOrgId = rootOrgId;
-	}
-
-	public Long getOrgId() {
-		return orgId;
-	}
-
-	public void setOrgId(Long orgId) {
-		this.orgId = orgId;
-	}
-
-	public String getOrgName() {
-		return orgName;
-	}
-
-	public void setOrgName(String orgName) {
-		this.orgName = orgName;
-	}
-
-}
+package cn.com.qmth.examcloud.core.basic.api.response;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseResponse;
+
+/**
+ * 类注释
+ *
+ * @author WANGWEI
+ * @date 2018年6月29日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public class SaveStudentResp extends BaseResponse {
+
+	/**
+	 * 属性注释
+	 */
+	private static final long serialVersionUID = 2263704597882102664L;
+
+	private Long studentId;
+
+	private Long rootOrgId;
+
+	private Long orgId;
+
+	private String orgName;
+
+	public Long getStudentId() {
+		return studentId;
+	}
+
+	public void setStudentId(Long studentId) {
+		this.studentId = studentId;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Long getOrgId() {
+		return orgId;
+	}
+
+	public void setOrgId(Long orgId) {
+		this.orgId = orgId;
+	}
+
+	public String getOrgName() {
+		return orgName;
+	}
+
+	public void setOrgName(String orgName) {
+		this.orgName = orgName;
+	}
+
+}