251202_01_ENH: User 관련 기능 구현

This commit is contained in:
2025-12-02 13:46:44 +09:00
parent bff9747d52
commit d13595f315
52 changed files with 1279 additions and 159 deletions

View File

@@ -0,0 +1,24 @@
package com.kri.contact.server.dto;
import com.kri.common.auth.jwt.JwtUserClaimsDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
@Schema(description = "로그인 응답")
public class LoginResponseDto {
@Schema(description = "jwt access 토큰")
private String accessToken;
@Schema(description = "사용자 정보")
private JwtUserClaimsDto user;
public static LoginResponseDto from(String accessToken, JwtUserClaimsDto jwtUserClaims){
return LoginResponseDto.builder()
.accessToken(accessToken)
.user(jwtUserClaims)
.build();
}
}