add updatedAt for comment response

This commit is contained in:
2021-03-19 21:19:53 +01:00
parent 8f1f1f10d9
commit 776e0257fb
10 changed files with 12 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ object CreateCommentArticle {
val content: String = comment.content
val childrenCount: Int = 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.createdAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -46,6 +46,7 @@ object GetArticleComments {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -35,6 +35,7 @@ object GetCitizenArticleComments {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -46,6 +46,7 @@ object CreateConstitutionComment {
val content: String = comment.content
val childrenCount: Int = 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.createdAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -35,6 +35,7 @@ object GetCitizenCommentConstitution {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -35,6 +35,7 @@ object GetConstitutionComment {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -40,6 +40,7 @@ object EditComment {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -46,6 +46,7 @@ object GetCommentChildren {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id

View File

@@ -35,6 +35,7 @@ object GetOneComment {
val content: String = comment.content
val childrenCount: Int = comment.childrenCount ?: 0
val createdAt: DateTime = comment.createdAt
val updatedAt: DateTime = comment.updatedAt
val parent: Any? = comment.parent?.let { p ->
object {
val id: UUID = p.id