Move constitution to component
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
package fr.dcproject.dto
|
||||
|
||||
import fr.dcproject.entity.ViewAggregation
|
||||
|
||||
class ViewAggregation(
|
||||
val total: Int,
|
||||
val unique: Int
|
||||
) {
|
||||
constructor(views: ViewAggregation) : this(views.total, views.unique)
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package fr.dcproject.dto
|
||||
|
||||
interface Viewable {
|
||||
var views: ViewAggregation
|
||||
|
||||
class Imp(views: fr.dcproject.entity.ViewAggregation) : Viewable {
|
||||
override var views: ViewAggregation = ViewAggregation(views.total, views.unique)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user