feat: 完成对各个类型请求Request的抽象定义

This commit is contained in:
叁玖领域 2025-08-15 10:05:08 +08:00
parent 9b1c9b1ace
commit b331df501c
8 changed files with 85 additions and 4 deletions

View File

@ -1,10 +1,7 @@
MIT License
The MIT License
Copyright (c) 2025 R3944Realms
This license applies to the template files as supplied by github.com/NeoForged/MDK
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.file
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractAccountRequest
: NapCatRequest() {
override fun header(): String {
return "account"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.group
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractGroupRequest
: NapCatRequest() {
override fun header(): String {
return "group"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.message
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractMessageRequest
: NapCatRequest() {
override fun header(): String {
return "message"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.other
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractOtherRequest
: NapCatRequest() {
override fun header(): String {
return "other"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.passkey
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractPasskeyRequest
: NapCatRequest() {
override fun header(): String {
return "passkey"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.personal
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractPersonalRequest
: NapCatRequest() {
override fun header(): String {
return "personal"
}
}

View File

@ -0,0 +1,12 @@
package top.r3944realms.ltdmanager.napcat.requests.system
import kotlinx.serialization.Serializable
import top.r3944realms.ltdmanager.napcat.requests.NapCatRequest
@Serializable
abstract class AbstractSystemRequest
: NapCatRequest() {
override fun header(): String {
return "system"
}
}