17 lines
377 B
Kotlin
17 lines
377 B
Kotlin
package view
|
|
|
|
import fr.louveauAmine.cvApi.dao.INTEREST
|
|
|
|
data class Interest(
|
|
val theme: String,
|
|
val description: String
|
|
)
|
|
|
|
data class DeleteInterest(
|
|
val theme: String
|
|
)
|
|
|
|
|
|
fun INTEREST.toView(): Interest = Interest(theme = this.theme, description = this.description)
|
|
|
|
fun Interest.toEntity(): INTEREST = INTEREST(theme = this.theme, description = this.description) |