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
@@ -4,6 +4,9 @@ import { Static, Type } from '@sinclair/typebox';
|
||||
|
||||
export const SetDoubtFriendsAddRequestPayloadSchema = Type.Object({
|
||||
flag: Type.String({ description: '请求 flag' }),
|
||||
// 注意强制String 非isNumeric 不遵守则不符合设计
|
||||
approve: Type.Boolean({ default: true, description: '是否同意 (强制为 true)' }),
|
||||
// 该字段没有语义 仅做保留 强制为True
|
||||
});
|
||||
|
||||
export type SetDoubtFriendsAddRequestPayload = Static<typeof SetDoubtFriendsAddRequestPayloadSchema>;
|
||||
@@ -13,10 +16,11 @@ export class SetDoubtFriendsAddRequest extends OneBotAction<SetDoubtFriendsAddRe
|
||||
override payloadSchema = SetDoubtFriendsAddRequestPayloadSchema;
|
||||
override returnSchema = Type.Any();
|
||||
override actionSummary = '处理可疑好友申请';
|
||||
override actionDescription = '同意并处理系统的可疑好友申请';
|
||||
override actionDescription = '同意或拒绝系统的可疑好友申请';
|
||||
override actionTags = ['系统接口'];
|
||||
override payloadExample = {
|
||||
flag: '12345',
|
||||
approve: true,
|
||||
};
|
||||
|
||||
override returnExample = null;
|
||||
|
||||
Reference in new issue
Block a user