return votes after vote

This commit is contained in:
2019-09-20 22:42:50 +02:00
parent 2311d3986e
commit a37afc1ada
6 changed files with 41 additions and 10 deletions

View File

@@ -3,8 +3,8 @@ package fr.dcproject.entity
import fr.postgresjson.entity.*
import java.util.*
interface ExtraI <T: EntityI<UUID>>:
EntityI<UUID>,
interface ExtraI <T: EntityI>:
EntityI,
EntityCreatedAt,
EntityCreatedBy<Citizen>{
var target: T

View File

@@ -1,5 +1,6 @@
package fr.dcproject.entity
import fr.postgresjson.entity.EntityI
import fr.postgresjson.entity.EntityUpdatedAt
import fr.postgresjson.entity.EntityUpdatedAtImp
@@ -7,4 +8,5 @@ open class VoteAggregation (
val up: Int,
val neutral: Int,
val down: Int
): EntityUpdatedAt by EntityUpdatedAtImp()
): EntityI,
EntityUpdatedAt by EntityUpdatedAtImp()