feature #14: create route for follow article
This commit is contained in:
11
src/main/kotlin/fr/dcproject/entity/Follow.kt
Normal file
11
src/main/kotlin/fr/dcproject/entity/Follow.kt
Normal file
@@ -0,0 +1,11 @@
|
||||
package fr.dcproject.entity
|
||||
import fr.postgresjson.entity.EntityI
|
||||
import java.util.*
|
||||
|
||||
class Follow <T: EntityI<UUID>> (
|
||||
id: UUID = UUID.randomUUID(),
|
||||
citizen: Citizen,
|
||||
override var target: T
|
||||
): Extra<T>(id, citizen)
|
||||
|
||||
typealias FollowArticleEntity = Follow<Article>
|
||||
Reference in New Issue
Block a user