Skip to content

Commit

Permalink
Refactor: 구성원 POST API image => mainImage 리펙토링 #317
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW authored Sep 6, 2024
1 parent 7d970d4 commit 6c2f58f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class ProfessorController(
@PostMapping(consumes = ["multipart/form-data"])
fun createProfessor(
@RequestPart("request") requestBody: CreateProfessorLanguagesReqBody,
@RequestPart("image") image: MultipartFile?
@RequestPart("mainImage") mainImage: MultipartFile?
): ProfessorLanguagesDto =
professorService.createProfessorLanguages(requestBody, image)
professorService.createProfessorLanguages(requestBody, mainImage)

@AuthenticatedStaff
@PutMapping("/{koProfessorId}/{enProfessorId}", consumes = ["multipart/form-data"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class StaffController(
@PostMapping(consumes = ["multipart/form-data"])
fun createStaff(
@RequestPart("request") createStaffLanguagesReqBody: CreateStaffLanguagesReqBody,
@RequestPart("image") image: MultipartFile?
): StaffLanguagesDto = staffService.createStaffLanguages(createStaffLanguagesReqBody, image)
@RequestPart("mainImage") mainImage: MultipartFile?
): StaffLanguagesDto = staffService.createStaffLanguages(createStaffLanguagesReqBody, mainImage)

@AuthenticatedStaff
@PutMapping("/{koStaffId}/{enStaffId}", consumes = ["multipart/form-data"])
Expand Down

0 comments on commit 6c2f58f

Please sign in to comment.