From 6a97e804c9e4311888ef27e1ac46c165d4cda804 Mon Sep 17 00:00:00 2001 From: 101 Date: Sun, 18 Feb 2024 23:17:40 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=84=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/daemawiki/domain/user/dto/GetUserResponse.java | 3 ++- .../example/daemawiki/domain/user/model/mapper/UserMapper.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/user/dto/GetUserResponse.java b/src/main/java/com/example/daemawiki/domain/user/dto/GetUserResponse.java index e7b042b1..6214b511 100644 --- a/src/main/java/com/example/daemawiki/domain/user/dto/GetUserResponse.java +++ b/src/main/java/com/example/daemawiki/domain/user/dto/GetUserResponse.java @@ -5,7 +5,8 @@ @Builder public record GetUserResponse( - String id, + String userId, + String documentId, String name, String major, File profile diff --git a/src/main/java/com/example/daemawiki/domain/user/model/mapper/UserMapper.java b/src/main/java/com/example/daemawiki/domain/user/model/mapper/UserMapper.java index 453e4219..8f5b7325 100644 --- a/src/main/java/com/example/daemawiki/domain/user/model/mapper/UserMapper.java +++ b/src/main/java/com/example/daemawiki/domain/user/model/mapper/UserMapper.java @@ -10,7 +10,8 @@ public class UserMapper { public Mono userToGetUserResponse(User user) { return Mono.just(GetUserResponse.builder() - .id(user.getId()) + .userId(user.getId()) + .documentId(user.getDocumentId()) .name(user.getName()) .major(user.getMajor().getMajor()) .profile(user.getProfile())