feat: add r18 setu api

This commit is contained in:
2024-09-29 21:39:20 +08:00
parent 44e3e093d1
commit 7372724274
5 files changed
+87 -22

No files matched your search

@@ -5,11 +5,15 @@
*/
package cn.rtast.fancybot.entity
package cn.rtast.fancybot.entity.setu
import com.google.gson.annotations.SerializedName
data class Setu(
val urls: URLS,
val r18: Boolean
val r18: Boolean,
@SerializedName("author_id")
val authorId: Long,
) {
data class URLS(
val large: String
@@ -0,0 +1,22 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/29
*/
package cn.rtast.fancybot.entity.setu
data class SetuV2(
val pid: Long,
val uid: Long,
val title: String,
val author: String,
val urls: URLS,
val r18: Boolean,
val tags: List<String>
) {
data class URLS(
val regular: String,
)
}