Revert "fix: 对齐 OneBot schema 与合并转发消息处理行为 (#1694)" (#1701)
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s
This reverts commit deae7fd467.
This commit is contained in:
54 files changed
+195
-1078
No files matched your search
@@ -15,7 +15,6 @@ type PayloadType = Static<typeof PayloadSchema>;
|
||||
const ReturnSchema = Type.Null({ description: '操作结果' });
|
||||
|
||||
type ReturnType = Static<typeof ReturnSchema>;
|
||||
const EmptyPayloadSchema = Type.Object({});
|
||||
|
||||
class MarkMsgAsRead extends OneBotAction<PayloadType, ReturnType> {
|
||||
override actionSummary = '标记消息已读';
|
||||
@@ -83,10 +82,8 @@ export class GoCQHTTPMarkMsgAsRead extends MarkMsgAsRead {
|
||||
override actionSummary = '标记消息已读 (Go-CQHTTP)';
|
||||
}
|
||||
|
||||
export class MarkAllMsgAsRead extends OneBotAction<Static<typeof EmptyPayloadSchema>, null> {
|
||||
export class MarkAllMsgAsRead extends OneBotAction<void, null> {
|
||||
override actionName = ActionName._MarkAllMsgAsRead;
|
||||
override payloadSchema = EmptyPayloadSchema;
|
||||
override returnSchema = ReturnSchema;
|
||||
override actionSummary = '标记所有消息已读';
|
||||
override actionTags = ['消息接口'];
|
||||
override payloadExample = {};
|
||||
|
||||
Reference in new issue
Block a user