improve target reference Improve Tests for Opinion fix SQL:upsert_opinion
12 lines
284 B
Kotlin
12 lines
284 B
Kotlin
package fr.dcproject.entity.request
|
|
|
|
import io.ktor.application.ApplicationCall
|
|
|
|
interface Request
|
|
|
|
interface RequestBuilder<E> {
|
|
suspend fun getContent(call: ApplicationCall): E
|
|
}
|
|
|
|
suspend fun <E> ApplicationCall.getContent(builder: RequestBuilder<E>) = builder.getContent(this)
|