feat: 完成对各个类型请求Request的抽象定义
This commit is contained in:
parent
9b1c9b1ace
commit
b331df501c
5
LINCESE
5
LINCESE
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user