From 6c5ef9723168ee006a52cd17c3ff481f846bccef Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Mon, 8 Jul 2024 14:04:15 +0900 Subject: [PATCH] =?UTF-8?q?bug=20::=20=EB=B2=84=EA=B7=B8=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infrastructure/feign/client/dsm/DsmLoginClient.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/xquare/app/xquareinfra/infrastructure/feign/client/dsm/DsmLoginClient.kt b/src/main/kotlin/xquare/app/xquareinfra/infrastructure/feign/client/dsm/DsmLoginClient.kt index 9adcdd5..181190d 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/infrastructure/feign/client/dsm/DsmLoginClient.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/infrastructure/feign/client/dsm/DsmLoginClient.kt @@ -6,17 +6,18 @@ import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy import com.fasterxml.jackson.databind.annotation.JsonNaming import org.springframework.cloud.openfeign.FeignClient import org.springframework.web.bind.annotation.GetMapping +import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestParam import xquare.app.xquareinfra.infrastructure.feign.client.dsm.dto.GetDsmUserInfoResponse @FeignClient(name = "dsm-login", url = "https://prod-server.xquare.app/dsm-login") interface DsmLoginClient { - @GetMapping("/user/user-data") + @PostMapping("/user/user-data") fun getUserInfo(@RequestBody dsmLoginRequest: DsmLoginRequest): GetDsmUserInfoResponse } -@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy::class) +@JsonNaming(SnakeCaseStrategy::class) data class DsmLoginRequest( val accountId: String, val password: String