Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: PUT API newImage => newMainImage 수정 #318

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading