Clean code
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package fr.dcproject.entity
|
||||
|
||||
import fr.postgresjson.entity.immutable.*
|
||||
import fr.postgresjson.entity.mutable.EntityDeletedAt
|
||||
import fr.postgresjson.entity.mutable.EntityDeletedAtImp
|
||||
@@ -62,6 +63,7 @@ interface ArticleSimpleI :
|
||||
Votable {
|
||||
var title: String
|
||||
}
|
||||
|
||||
interface ArticleBasicI :
|
||||
ArticleSimpleI {
|
||||
var anonymous: Boolean
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
package fr.dcproject.entity
|
||||
|
||||
import java.util.*
|
||||
|
||||
class Follow <T : TargetI> (
|
||||
class Follow<T : TargetI>(
|
||||
id: UUID = UUID.randomUUID(),
|
||||
override val createdBy: CitizenBasic,
|
||||
target: T
|
||||
|
||||
@@ -4,7 +4,7 @@ import fr.postgresjson.entity.immutable.EntityUpdatedAt
|
||||
import fr.postgresjson.entity.immutable.EntityUpdatedAtImp
|
||||
import java.util.*
|
||||
|
||||
open class Vote <T : TargetI> (
|
||||
open class Vote<T : TargetI>(
|
||||
id: UUID = UUID.randomUUID(),
|
||||
override val createdBy: CitizenBasic,
|
||||
target: T,
|
||||
|
||||
Reference in New Issue
Block a user