-
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.
feat: mainViewBrowseSubscribeWorkbooks 구현 (#289)
- Loading branch information
1 parent
44332ef
commit 2ea547e
Showing
2 changed files
with
82 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
.../few/api/web/controller/subscription/response/MainViewBrowseSubscribeWorkbooksResponse.kt
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,30 @@ | ||
package com.few.api.web.controller.subscription.response | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat | ||
import com.fasterxml.jackson.annotation.JsonInclude | ||
import com.few.api.domain.workbook.usecase.dto.WriterDetail | ||
import java.net.URL | ||
import java.time.LocalDateTime | ||
|
||
data class MainViewBrowseSubscribeWorkbooksResponse( | ||
val workbooks: List<MainViewSubscribeWorkbookInfo>, | ||
) | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
data class MainViewSubscribeWorkbookInfo( | ||
val id: Long, | ||
val mainImageUrl: URL, | ||
val title: String, | ||
val description: String, | ||
val category: String, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") | ||
val createdAt: LocalDateTime, | ||
val writerDetails: List<WriterDetail>, | ||
val subscriptionCount: Long, | ||
val status: String?, // convert from enum | ||
val totalDay: Int?, | ||
val currentDay: Int?, | ||
val rank: Long?, | ||
val totalSubscriber: Long?, | ||
val articleInfo: String?, // convert from Json | ||
) |