-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REFACTOR(like) :: likeDto record로 변경
- Loading branch information
1 parent
ad40889
commit 84554f1
Showing
5 changed files
with
10 additions
and
15 deletions.
There are no files selected for viewing
17 changes: 6 additions & 11 deletions
17
src/main/java/com/woongeya/zoing/domain/like/presentation/dto/response/LikerResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
package com.woongeya.zoing.domain.like.presentation.dto.response; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class LikerResponseDto { | ||
|
||
private Long id; | ||
private String name; | ||
|
||
public LikerResponseDto(Long id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
public record LikerResponseDto ( | ||
Long id, | ||
String name | ||
) { | ||
public static LikerResponseDto of(Long id, String name) { | ||
return new LikerResponseDto(id, name); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters