Skip to content

Commit

Permalink
Merge pull request #405 from kkkapuq/feature/#404_add_crew_question_info
Browse files Browse the repository at this point in the history
Feat : 크루 상세 조회 시 크루 가입 질문 추가 전달
  • Loading branch information
kkkapuq authored Mar 25, 2024
2 parents e87d647 + 71581d5 commit 01b05a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class JwtTokenServiceImpl implements JwtTokenService {
private static final String JWT_TOKEN_PREFIX = "Bearer ";
private static final String TOKEN_HEADER_NAME = "Authorization";

private static final long ACCESS_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60; // 1시간
private static final long ACCESS_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60 * 24L; // 1일
private static final long REFRESH_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 7L; // 7일

// 비회원 전용 토큰
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
public record CrewResponse(
Long id,
String name,
String headName,
int memberCount,
int capacity,
Region region,
String description,
String icon,
CrewStatus status,
String headProfileImage,
String question,
@JsonFormat(shape = JsonFormat.Shape.STRING)
LocalDateTime createdAt,
@JsonFormat(shape = JsonFormat.Shape.STRING)
Expand All @@ -29,13 +31,15 @@ public static CrewResponse of(CrewDto crewDto, boolean isMember) {
return new CrewResponse(
crewDto.id(),
crewDto.name(),
crewDto.userDto().nickname(),
crewDto.memberCount(),
crewDto.capacity(),
crewDto.region(),
crewDto.description(),
crewDto.icon(),
crewDto.status(),
crewDto.userDto().profileImage(),
crewDto.question(),
crewDto.createdAt(),
crewDto.updatedAt(),
crewDto.tags(),
Expand Down

0 comments on commit 01b05a5

Please sign in to comment.