From aab24d8081486a8cf29e38d2c4e7f60289652a8e Mon Sep 17 00:00:00 2001 From: Kim Seung-yeop Date: Mon, 12 Aug 2024 18:51:55 +0900 Subject: [PATCH] =?UTF-8?q?SCRUM-49=20feat:=20auth=20dto=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../golagola/domain/auth/dto/AuthRequest.java | 5 ++++- .../golagola/domain/auth/dto/AuthResponse.java | 10 ++++++++-- .../golagola/domain/auth/dto/JoinUserRequest.java | 13 ++++++++++++- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthRequest.java b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthRequest.java index d7cd34c..f94e011 100644 --- a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthRequest.java +++ b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthRequest.java @@ -1,4 +1,7 @@ package com.kakaoteck.golagola.domain.auth.dto; -public record AuthRequest() { +public record AuthRequest( + String email, + String password +) { } diff --git a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthResponse.java b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthResponse.java index ba32c5d..b252e66 100644 --- a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthResponse.java +++ b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/AuthResponse.java @@ -1,4 +1,10 @@ package com.kakaoteck.golagola.domain.auth.dto; -public class AuthResponse { -} +import lombok.Builder; + +@Builder +public record AuthResponse( + String accessToken, + String refreshToken +) { +} \ No newline at end of file diff --git a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/JoinUserRequest.java b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/JoinUserRequest.java index d146e15..8368a00 100644 --- a/src/main/java/com/kakaoteck/golagola/domain/auth/dto/JoinUserRequest.java +++ b/src/main/java/com/kakaoteck/golagola/domain/auth/dto/JoinUserRequest.java @@ -1,4 +1,15 @@ package com.kakaoteck.golagola.domain.auth.dto; -public class JoinUserRequest { +import com.kakaoteck.golagola.global.common.enums.Role; + +import java.time.LocalDate; + +public record JoinUserRequest( + String email, + String password, + String nickname, + String gender, + LocalDate birthDate, + Role role +) { }