feat: support kotlinc command

This commit is contained in:
2024-09-12 22:45:07 +08:00
parent 31c8455666
commit d286613f01
4 files changed
+89 -1

No files matched your search

@@ -0,0 +1,20 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/12
*/
package cn.rtast.fancybot.entity.kcs
data class KCSPayload(
val files: List<File>,
val args: String = "",
val confType: String = "java"
) {
data class File(
val text: String,
val name: String = "File.kt",
val publicId: String = ""
)
}
@@ -0,0 +1,22 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/12
*/
package cn.rtast.fancybot.entity.kcs
import com.google.gson.annotations.SerializedName
data class KCSResponse(
val errors: Errors,
val exception: Any,
val jvmByteCode: Any,
val text: String
) {
data class Errors(
@SerializedName("File.kt")
val file: List<Any>
)
}