Skip to content

Commit

Permalink
Merge pull request #134 from GSM-MSG/133-accept-teacher-student-depre…
Browse files Browse the repository at this point in the history
…cated

🗑️ acceptTeacher, Student deprecated
  • Loading branch information
esperar authored Apr 6, 2023
2 parents 6e6b0da + cdcab44 commit 74cc22e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ class UserController(
return ResponseEntity.ok(result)
}

@PatchMapping("/accept-teacher")
fun acceptTeacher(@RequestBody @Valid acceptTeacherReqDto: AcceptTeacherReqDto): ResponseEntity<Void>{
acceptTeacherSignUpService.execute(acceptTeacherReqDto)
return ResponseEntity.noContent().build()
}

@GetMapping("/pending")
fun pendingList(): ResponseEntity<List<SinglePendingListResDto>> {
val result = getPendingUsersService.execute()
return ResponseEntity.ok(result)
}

@Deprecated("This api is deprecated. Use acceptUser instead")
@PatchMapping("/accept-teacher")
fun acceptTeacher(@RequestBody @Valid acceptTeacherReqDto: AcceptTeacherReqDto): ResponseEntity<Void>{
acceptTeacherSignUpService.execute(acceptTeacherReqDto)
return ResponseEntity.noContent().build()
}

@Deprecated("This api is deprecated. Use acceptUser instead")
@PatchMapping("/accept-student")
fun acceptStudent(@RequestBody @Valid acceptedStudentReqDto: AcceptStudentReqDto): ResponseEntity<Void> {
acceptStudentSignUpService.execute(acceptedStudentReqDto)
Expand Down

0 comments on commit 74cc22e

Please sign in to comment.