feat: add compiler and format class dir
This commit is contained in:
23 files changed
+128
-68
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/9/13
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.compiler
|
||||
|
||||
data class GLOTPayload(
|
||||
val files: List<File>
|
||||
) {
|
||||
data class File(
|
||||
val content: String,
|
||||
val name: String = "main"
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/9/13
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.compiler
|
||||
|
||||
data class GLOTResponse(
|
||||
val stdout: String,
|
||||
)
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/9/12
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.compiler
|
||||
|
||||
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.compiler
|
||||
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user