Big refactoring #77

Merged
flecomte merged 166 commits from refactoring-component-and-immutable into master 2021-03-24 19:06:07 +01:00
10 changed files with 12 additions and 0 deletions
Showing only changes of commit 776e0257fb - Show all commits

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

View File

@@ -1112,6 +1112,9 @@ components:
createdAt:
type: string
format: 'date-time'
updatedAt:
type: string
format: 'date-time'
target:
additionalProperties: false
properties: