sakthivikram/geo-location
0
1package com.georeport.dto;2 3import lombok.*;4import java.util.List;5 6/**7 * DTO for authentication response containing JWT token.8 */9@Data10@NoArgsConstructor11@AllArgsConstructor12@Builder13public class AuthResponse {14 15 private String token;16 private String tokenType;17 private Long userId;18 private String email;19 private String fullName;20 private List<String> roles;21 private Long expiresIn;22 23 public static AuthResponse of(String token, Long userId, String email, String fullName, List<String> roles,24 Long expiresIn) {25 return AuthResponse.builder()26 .token(token)27 .tokenType("Bearer")28 .userId(userId)29 .email(email)30 .fullName(fullName)31 .roles(roles)32 .expiresIn(expiresIn)33 .build();34 }35}36 