Sfoglia il codice sorgente

add updatePhotoPath rpc api

deason 11 mesi fa
parent
commit
09e7a85daa

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

@@ -30,6 +30,11 @@ public class StudentCloudServiceClient extends AbstractCloudClientSupport implem
         return post("student/updatePassword", req, UpdatePasswordResp.class);
     }
 
+    @Override
+    public UpdatePhotoPathResp updatePhotoPath(UpdatePhotoPathReq req) {
+        return post("student/updatePhotoPath", req, UpdatePhotoPathResp.class);
+    }
+
     @Override
     public UpdateStudentStatusResp updateStudentStatus(UpdateStudentStatusReq req) {
         return post("student/updateStudentStatus", req, UpdateStudentStatusResp.class);

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

@@ -48,6 +48,11 @@ public interface StudentCloudService extends CloudService {
      */
     UpdatePasswordResp updatePassword(UpdatePasswordReq req);
 
+    /**
+     * 更新学生底照
+     */
+    UpdatePhotoPathResp updatePhotoPath(UpdatePhotoPathReq req);
+
     /**
      * 更新学生状态
      *

+ 29 - 0
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/request/UpdatePhotoPathReq.java

@@ -0,0 +1,29 @@
+package cn.com.qmth.examcloud.core.basic.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class UpdatePhotoPathReq extends BaseRequest {
+
+    private static final long serialVersionUID = 1003594551453376759L;
+
+    private Long studentId;
+
+    private String photoPath;
+
+    public Long getStudentId() {
+        return studentId;
+    }
+
+    public void setStudentId(Long studentId) {
+        this.studentId = studentId;
+    }
+
+    public String getPhotoPath() {
+        return photoPath;
+    }
+
+    public void setPhotoPath(String photoPath) {
+        this.photoPath = photoPath;
+    }
+
+}

+ 9 - 0
examcloud-core-basic-api/src/main/java/cn/com/qmth/examcloud/core/basic/api/response/UpdatePhotoPathResp.java

@@ -0,0 +1,9 @@
+package cn.com.qmth.examcloud.core.basic.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class UpdatePhotoPathResp extends BaseResponse {
+
+    private static final long serialVersionUID = -8014767470452998115L;
+
+}