Skip to content

Commit

Permalink
Refactor: PUT API newImage => newMainImage 수정 #318
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW authored Sep 7, 2024
1 parent 6c2f58f commit da7d055
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class ProfessorController(
@RequestPart("request") requestBody: ModifyProfessorLanguagesReqBody,

@Parameter(description = "image 교체할 경우 업로드. Request Body의 removeImage 관계없이 변경됨.")
@RequestPart("newImage")
newImage: MultipartFile?
@RequestPart("newMainImage")
newMainImage: MultipartFile?
): ProfessorLanguagesDto =
professorService.updateProfessorLanguages(koProfessorId, enProfessorId, requestBody, newImage)
professorService.updateProfessorLanguages(koProfessorId, enProfessorId, requestBody, newMainImage)

@AuthenticatedStaff
@DeleteMapping("/{koProfessorId}/{enProfessorId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ class StaffController(
@RequestPart("request") modifyStaffLanguageReq: ModifyStaffLanguagesReqBody,

@Parameter(description = "image 교체할 경우 업로드. Request Body의 removeImage 관계없이 변경됨.")
@RequestPart("newImage")
newImage: MultipartFile?
@RequestPart("newMainImage")
newMainImage: MultipartFile?
): StaffLanguagesDto =
staffService.updateStaffLanguages(koStaffId, enStaffId, modifyStaffLanguageReq, newImage)
staffService.updateStaffLanguages(koStaffId, enStaffId, modifyStaffLanguageReq, newMainImage)

@AuthenticatedStaff
@DeleteMapping("/{koStaffId}/{enStaffId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ class ResearchController(
@RequestPart("request") request: ModifyResearchLanguageReqBody,

@Parameter(description = "image 교체할 경우 업로드. Request Body의 removeImage 관계없이 변경됨.")
@RequestPart("newImage")
newImage: MultipartFile?
@RequestPart("newMainImage")
newMainImage: MultipartFile?
): ResearchLanguageDto {
return researchService.updateResearchLanguage(koreanId, englishId, request, newImage)
return researchService.updateResearchLanguage(koreanId, englishId, request, newMainImage)
}

@AuthenticatedStaff
Expand Down

0 comments on commit da7d055

Please sign in to comment.