diff --git a/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java b/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java index c85d4d5..10746a5 100644 --- a/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java +++ b/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java @@ -11,7 +11,8 @@ public record SignupUserResponse( String greetingEggName, String greetingEggType, String greetingEggImgUrl, - String eggCode + String eggCode, + Long eggId ) { public SignupUserResponse(final User user, final TokenPair tokenPair, final Egg greetingEgg, @@ -23,7 +24,8 @@ public SignupUserResponse(final User user, final TokenPair tokenPair, final Egg greetingEgg.getName(), greetingEgg.getEggType().getName(), greetingEgg.getImgUrl(), - eggCode + eggCode, + greetingEgg.getId() ); } } diff --git a/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java b/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java index cef14ba..950f2df 100644 --- a/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java +++ b/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java @@ -95,7 +95,8 @@ void tearDown() { .log().all() .body("payload.nickname", equalTo("username")) .body("payload.token_pair.access_token", notNullValue()) - .body("payload.token_pair.refresh_token", notNullValue()); + .body("payload.token_pair.refresh_token", notNullValue()) + .body("payload.egg_id", notNullValue()); } @Test diff --git a/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java b/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java index 18bb3a3..24f59e3 100644 --- a/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java +++ b/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java @@ -157,7 +157,8 @@ class AuthControllerTest { "exmaple_egg_name", "example_egg_type", "example_egg_url", - "ECODE" + "ECODE", + 1L ) ); @@ -196,7 +197,8 @@ class AuthControllerTest { "exmaple_egg_name", "example_egg_type", "example_egg_url", - "ECODE" + "ECODE", + 1L ) ); diff --git a/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java b/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java index d0567f9..17cc4b8 100644 --- a/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java +++ b/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java @@ -149,7 +149,8 @@ void tearDown() { "마당알", "MADANG", "test.url", - "ECODE" + "ECODE", + 1L )); AuthSignupRequest request = new AuthSignupRequest(