refactor: split up core into multiple modules
This commit is contained in:
parent
2725342c3f
commit
0d84411f14
38 changed files with 344 additions and 149 deletions
14
common/build.gradle.kts
Normal file
14
common/build.gradle.kts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
plugins {
|
||||
alias(libs.plugins.kotlinMultiplatform)
|
||||
alias(libs.plugins.kotlinSerialization)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm()
|
||||
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
implementation(libs.kotlinx.serialization.core)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package moe.lava.neon.common.captcha
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class CaptchaRequest(
|
||||
val captchaKey: List<String>,
|
||||
val captchaService: String,
|
||||
val captchaSitekey: String?,
|
||||
val captchaSessionId: String?,
|
||||
val captchaRqdata: String?,
|
||||
val captchaRqtoken: String?,
|
||||
val shouldServeInvisible: Boolean? = false,
|
||||
)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package moe.lava.neon.common.captcha
|
||||
|
||||
sealed class CaptchaResponse {
|
||||
data class Success(val token: String) : CaptchaResponse()
|
||||
data class Failed(val error: Throwable) : CaptchaResponse()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue