mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
WIP
This commit is contained in:
parent
2cc762a5b8
commit
6e597f0509
2 changed files with 19 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.github.damontecres.wholphin.services
|
||||||
|
|
||||||
|
import com.github.damontecres.api.seerr.SeerrApiClient
|
||||||
|
|
||||||
|
class SeerrService constructor(
|
||||||
|
private val api: SeerrApiClient,
|
||||||
|
) {
|
||||||
|
fun init() {
|
||||||
|
api.searchApi.discoverTvGet(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -36,6 +36,14 @@ openApiGenerate {
|
||||||
put("enumPropertyNaming", "UPPERCASE")
|
put("enumPropertyNaming", "UPPERCASE")
|
||||||
put("modelMutable", false)
|
put("modelMutable", false)
|
||||||
}
|
}
|
||||||
|
typeMappings.set(
|
||||||
|
mapOf(
|
||||||
|
"number" to "kotlin.Int",
|
||||||
|
"integer" to "kotlin.Int",
|
||||||
|
"int32" to "kotlin.Int",
|
||||||
|
"int64" to "kotlin.Long",
|
||||||
|
),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileKotlin") {
|
tasks.named("compileKotlin") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue