From bad3b0b9ea2b23075af35211958de8010ffcacb3 Mon Sep 17 00:00:00 2001 From: huGgW Date: Sat, 7 Sep 2024 20:22:06 +0900 Subject: [PATCH] refactor: PUT newImage -> newMainImage --- .../csereal/core/member/api/v2/ProfessorController.kt | 6 +++--- .../csereal/core/member/api/v2/StaffController.kt | 6 +++--- .../csereal/core/research/api/v2/ResearchController.kt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/ProfessorController.kt b/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/ProfessorController.kt index af71b40f..de8c4b53 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/ProfessorController.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/ProfessorController.kt @@ -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}") diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/StaffController.kt b/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/StaffController.kt index e6158567..9f575bdd 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/StaffController.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/member/api/v2/StaffController.kt @@ -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}") diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/research/api/v2/ResearchController.kt b/src/main/kotlin/com/wafflestudio/csereal/core/research/api/v2/ResearchController.kt index 1b16fcca..f4a4301d 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/research/api/v2/ResearchController.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/research/api/v2/ResearchController.kt @@ -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