-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#257 [feat] 관리자페이지 글감 LIST 조회
- Loading branch information
Showing
9 changed files
with
140 additions
and
1 deletion.
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
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
21 changes: 21 additions & 0 deletions
21
module-domain/src/main/java/com/mile/moim/service/dto/MoimTopicInfoListResponse.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.mile.moim.service.dto; | ||
|
||
import java.util.List; | ||
|
||
public record MoimTopicInfoListResponse( | ||
int pageNumber, | ||
Long topicCount, | ||
List<MoimTopicInfoResponse> topics | ||
) { | ||
public static MoimTopicInfoListResponse of ( | ||
final int pageNumber, | ||
final Long topicCount, | ||
final List<MoimTopicInfoResponse> moimTopicInfoResponses | ||
) { | ||
return new MoimTopicInfoListResponse( | ||
pageNumber, | ||
topicCount, | ||
moimTopicInfoResponses | ||
); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
module-domain/src/main/java/com/mile/moim/service/dto/MoimTopicInfoResponse.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.mile.moim.service.dto; | ||
|
||
import com.mile.topic.domain.Topic; | ||
import com.mile.utils.DateUtil; | ||
|
||
public record MoimTopicInfoResponse( | ||
String topicId, | ||
String topicName, | ||
String topicTag, | ||
String topicDescription, | ||
String createdAt | ||
) { | ||
public static MoimTopicInfoResponse of( | ||
final Topic topic | ||
) { | ||
return new MoimTopicInfoResponse( | ||
topic.getIdUrl(), | ||
topic.getContent(), | ||
topic.getKeyword(), | ||
topic.getDescription(), | ||
DateUtil.getStringDateOfLocalDate(topic.getCreatedAt()) | ||
); | ||
} | ||
} |
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