-
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(project) :: postDto record로 변경
- Loading branch information
1 parent
1a514bd
commit 7217a50
Showing
6 changed files
with
39 additions
and
58 deletions.
There are no files selected for viewing
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
33 changes: 15 additions & 18 deletions
33
src/main/java/com/woongeya/zoing/domain/post/presetation/dto/response/PostResponse.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
16 changes: 4 additions & 12 deletions
16
src/main/java/com/woongeya/zoing/domain/post/presetation/dto/response/PostResponseList.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,19 +1,11 @@ | ||
package com.woongeya.zoing.domain.post.presetation.dto.response; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Builder | ||
public class PostResponseList { | ||
|
||
private List<PostResponse> postResponses; | ||
|
||
public record PostResponseList( | ||
List<PostResponse> postResponses | ||
) { | ||
public static PostResponseList of(List<PostResponse> postResponses) { | ||
return PostResponseList.builder() | ||
.postResponses(postResponses) | ||
.build(); | ||
return new PostResponseList(postResponses); | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
src/main/java/com/woongeya/zoing/domain/post/service/qeury/QuerySearchPostService.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
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