Skip to content

Commit

Permalink
refactor: challenge preview dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pjm2571 committed Oct 25, 2024
1 parent a5b3d5c commit 6807399
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import java.time.LocalDateTime;

public record ChallengePreviewDto(
Long challengeId,
String algorithm,
String title,
Long views,
LocalDateTime createdAt
) {

public static ChallengePreviewDto of(Challenge challenge) {
return new ChallengePreviewDto(
challenge.getId(),
challenge.getAlgorithm(),
challenge.getTitle(),
challenge.getViews(),
Expand Down

0 comments on commit 6807399

Please sign in to comment.