From fd4a1b9f3e0848b92641c544c5ef1866ac7e6d77 Mon Sep 17 00:00:00 2001 From: 4mjeo <4mj.eo@dsm.hs.kr> Date: Sat, 9 Mar 2024 17:03:33 +0900 Subject: [PATCH] =?UTF-8?q?udpate=20::=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infrastructure/feign/client/UserClient.kt | 17 ----------------- .../user/repository/dtos/UserInformationDto.kt | 17 ----------------- .../user/repository/dtos/UserRole.kt | 7 ------- 3 files changed, 41 deletions(-) delete mode 100644 src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/feign/client/UserClient.kt delete mode 100644 src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserInformationDto.kt delete mode 100644 src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserRole.kt diff --git a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/feign/client/UserClient.kt b/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/feign/client/UserClient.kt deleted file mode 100644 index 401b7a4..0000000 --- a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/feign/client/UserClient.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.example.v1oauthauthorizationservice.infrastructure.feign.client - -import com.example.v1oauthauthorizationservice.infrastructure.user.repository.dtos.UserInformationDto -import java.util.UUID -import org.springframework.cloud.openfeign.FeignClient -import org.springframework.web.bind.annotation.GetMapping -import org.springframework.web.bind.annotation.PathVariable - -@FeignClient(name = "userClient", url = "\${service.scheme}://\${service.user.host}") -interface UserClient { - - @GetMapping("/users/id/{userId}") - fun getUserByUserId(@PathVariable("userId") userId: UUID): UserInformationDto - - @GetMapping("/users/account-id/{accountId}") - fun getUserByAccountId(@PathVariable("accountId") accountId: String): UserInformationDto -} diff --git a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserInformationDto.kt b/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserInformationDto.kt deleted file mode 100644 index 7113717..0000000 --- a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserInformationDto.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.example.v1oauthauthorizationservice.infrastructure.user.repository.dtos - -import java.time.LocalDate -import java.util.UUID - -data class UserInformationDto( - val id: UUID, - val accountId: String, - val name: String, - val birthDay: LocalDate, - val grade: Int, - val classNum: Int, - val num: Int, - val profileFileName: String?, - val password: String, - val userRole: UserRole -) diff --git a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserRole.kt b/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserRole.kt deleted file mode 100644 index 849ce36..0000000 --- a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/user/repository/dtos/UserRole.kt +++ /dev/null @@ -1,7 +0,0 @@ -package com.example.v1oauthauthorizationservice.infrastructure.user.repository.dtos - -enum class UserRole { - SCH, - STU, - DOR -}