Big refactoring #77
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1112,6 +1112,9 @@ components:
|
||||
createdAt:
|
||||
type: string
|
||||
format: 'date-time'
|
||||
updatedAt:
|
||||
type: string
|
||||
format: 'date-time'
|
||||
target:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user