add updatedAt for comment response
This commit is contained in:
@@ -45,6 +45,7 @@ object CreateCommentArticle {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = 0
|
val childrenCount: Int = 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.createdAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ object GetArticleComments {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ object GetCitizenArticleComments {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ object CreateConstitutionComment {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = 0
|
val childrenCount: Int = 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.createdAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ object GetCitizenCommentConstitution {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ object GetConstitutionComment {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ object EditComment {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ object GetCommentChildren {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ object GetOneComment {
|
|||||||
val content: String = comment.content
|
val content: String = comment.content
|
||||||
val childrenCount: Int = comment.childrenCount ?: 0
|
val childrenCount: Int = comment.childrenCount ?: 0
|
||||||
val createdAt: DateTime = comment.createdAt
|
val createdAt: DateTime = comment.createdAt
|
||||||
|
val updatedAt: DateTime = comment.updatedAt
|
||||||
val parent: Any? = comment.parent?.let { p ->
|
val parent: Any? = comment.parent?.let { p ->
|
||||||
object {
|
object {
|
||||||
val id: UUID = p.id
|
val id: UUID = p.id
|
||||||
|
|||||||
@@ -1112,6 +1112,9 @@ components:
|
|||||||
createdAt:
|
createdAt:
|
||||||
type: string
|
type: string
|
||||||
format: 'date-time'
|
format: 'date-time'
|
||||||
|
updatedAt:
|
||||||
|
type: string
|
||||||
|
format: 'date-time'
|
||||||
target:
|
target:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user