Skip to content

Commit

Permalink
v1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Sep 22, 2024
2 parents 2e1d6c3 + ce033fa commit 568a0e7
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import team.aliens.dms.domain.student.usecase.UpdateStudentProfileUseCase
import team.aliens.dms.domain.student.usecase.UpdateStudentRoomByFileUseCase
import java.util.UUID

@CacheConfig(cacheNames = ["student"])
@Validated
@RequestMapping("/students")
@RestController
Expand Down Expand Up @@ -161,7 +160,6 @@ class StudentWebAdapter(
return checkStudentGcnUseCase.execute(request)
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.NO_CONTENT)
@PatchMapping("/profile")
fun updateProfile(@RequestBody @Valid webRequest: UpdateStudentProfileWebRequest) {
Expand All @@ -173,7 +171,6 @@ class StudentWebAdapter(
return studentMyPageUseCase.execute()
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.NO_CONTENT)
@DeleteMapping
fun withdrawal() {
Expand All @@ -187,7 +184,6 @@ class StudentWebAdapter(
return response.file
}

@Cacheable
@GetMapping("/manager")
fun managerGetAllStudents(
@RequestParam(required = false) name: String?,
Expand All @@ -209,34 +205,29 @@ class StudentWebAdapter(
)
}

@Cacheable
@GetMapping("/{student-id}")
fun getStudentDetails(@PathVariable("student-id") @NotNull studentId: UUID): StudentDetailsResponse {
return queryStudentDetailsUseCase.execute(studentId)
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.NO_CONTENT)
@DeleteMapping("/{student-id}")
fun deleteStudent(@PathVariable("student-id") @NotNull studentId: UUID) {
removeStudentUseCase.execute(studentId)
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.NO_CONTENT)
@PostMapping("/file/room")
fun updateStudentRoomByFile(@RequestPart @NotNull file: MultipartFile?) {
updateStudentRoomByFileUseCase.execute(file!!.toFile())
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.NO_CONTENT)
@PostMapping("/file/gcn")
fun updateStudentGcnByFile(@RequestPart @NotNull file: MultipartFile?) {
updateStudentGcnByFileUseCase.execute(file!!.toFile())
}

@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.CREATED)
@PostMapping("/verified-student")
fun importVerifiedStudentFromExcel(@RequestPart @NotNull file: MultipartFile?) {
Expand Down

0 comments on commit 568a0e7

Please sign in to comment.