Skip to content

Commit

Permalink
Merge pull request #48 from Team-KeepGoing/feature/student
Browse files Browse the repository at this point in the history
Fix :: find student error v3
  • Loading branch information
priverg authored Jun 13, 2024
2 parents 7ab07dc + 7a3cd2d commit c37070a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
public class StudentController {
private final StudentService studentService;

@Operation(summary = "이름을 통한 학생검색", description = "파라미터에 이름만 넣으면 학생정보가 나옵니다")
@GetMapping("/find-name")
@Operation(summary = "이름을 통한 학생검색", description = "내용에 이름만 넣으면 학생정보가 나옵니다")
@PostMapping("/find-name")
public BaseResponse findStudentName(@RequestBody StudentFindDto studentFindDto) {
return studentService.findByStudentName(studentFindDto);
}

@Operation(summary = "학반번호를 통한 학생검색", description = "파라미터에 학반번호(2304)만 넣으면 학생정보가 나옵니다")
@GetMapping("/find-studentId")
@Operation(summary = "학반번호를 통한 학생검색", description = "내용에 학반번호(2304)만 넣으면 학생정보가 나옵니다")
@PostMapping("/find-studentId")
public BaseResponse findStudentNum(@RequestBody StudentFindDto studentFindDto) {
return studentService.findByStudentNum(studentFindDto);
}

@Operation(summary = "전체 불러오기", description = "모든 책을 불러옵니다.")
@Operation(summary = "전체 학생 불러오기", description = "모든 학생을 불러옵니다.")
@GetMapping("/all")
public BaseResponse findAll() {
return studentService.findAll();
}

@Operation(summary = " 정보 수정하기", description = "id를 통해 정보를 수정합니다. 파라미터는 전체 코드가 아닌, 수정할 내용만 넘기셔도 됩니다.")
@Operation(summary = "학생 정보 수정하기", description = "id를 통해 학생 정보를 수정합니다. 파라미터는 전체 코드가 아닌, 수정할 내용만 넘기셔도 됩니다.")
@PatchMapping("/edit/{id}")
public BaseResponse editStudent(@RequestBody StudentRequestDto studentRequestDto, @PathVariable String id) {
return studentService.editStudent(studentRequestDto);
Expand Down

0 comments on commit c37070a

Please sign in to comment.