|
@@ -1,14 +1,25 @@
|
|
|
package cn.com.qmth.examcloud.service.core.api;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.service.core.repo.StudentRepo;
|
|
|
-import cn.com.qmth.examcloud.service.core.entity.Student;
|
|
|
-import cn.com.qmth.examcloud.service.core.service.StudentService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.service.core.entity.Student;
|
|
|
+import cn.com.qmth.examcloud.service.core.repo.StudentRepo;
|
|
|
+import cn.com.qmth.examcloud.service.core.service.StudentService;
|
|
|
|
|
|
/**
|
|
|
* 学生服务API
|
|
@@ -60,4 +71,11 @@ public class StudentApi {
|
|
|
studentRepo.delete(id);
|
|
|
return new ResponseEntity(HttpStatus.OK);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="更新学生照片",notes="更新")
|
|
|
+ @PutMapping("/update")
|
|
|
+ public ResponseEntity updateStudentPhoto(@RequestParam String identityNumber){
|
|
|
+ return new ResponseEntity(studentService.updateStudentPhoto(identityNumber),HttpStatus.OK);
|
|
|
+ }
|
|
|
+
|
|
|
}
|