Revert "fix"

This reverts commit 41dccd98a9.
This commit is contained in:
手瓜一十雪
2025-04-19 10:57:28 +08:00
parent 3ed5f543e2
commit 7b365367f7
88 changed files with 363 additions and 363 deletions

View File

@@ -2,10 +2,10 @@ import { ActionName } from '@/onebot/action/router';
import { OneBotAction } from '@/onebot/action/OneBotAction';
import { MessageUnique } from '@/common/message-unique';
import { z } from 'zod';
import { coerce } from '@/common/coerce';
import { actionType } from '@/common/coerce';
const SchemaData = z.object({
message_id: coerce.string(),
message_id: actionType.string(),
});
type Payload = z.infer<typeof SchemaData>;

View File

@@ -3,11 +3,11 @@ import { ChatType, Peer } from '@/core/types';
import { ActionName } from '@/onebot/action/router';
import { MessageUnique } from '@/common/message-unique';
import { z } from 'zod';
import { coerce } from '@/common/coerce';
import { actionType } from '@/common/coerce';
const SchemaData = z.object({
message_id: coerce.string(),
group_id: coerce.string().optional(),
user_id: coerce.string().optional(),
message_id: actionType.string(),
group_id: actionType.string().optional(),
user_id: actionType.string().optional(),
});
type Payload = z.infer<typeof SchemaData>;

View File

@@ -5,11 +5,11 @@ import { MessageUnique } from '@/common/message-unique';
import { RawMessage } from '@/core';
import { z } from 'zod';
import { NetworkAdapterConfig } from '@/onebot/config/config';
import { coerce } from '@/common/coerce';
import { actionType } from '@/common/coerce';
export type ReturnDataType = OB11Message
const SchemaData = z.object({
message_id: coerce.string(),
message_id: actionType.string(),
});
type Payload = z.infer<typeof SchemaData>;

View File

@@ -3,11 +3,11 @@ import { OneBotAction } from '@/onebot/action/OneBotAction';
import { ActionName } from '@/onebot/action/router';
import { MessageUnique } from '@/common/message-unique';
import { z } from 'zod';
import { coerce } from '@/common/coerce';
import { actionType } from '@/common/coerce';
const SchemaData = z.object({
user_id: coerce.string().optional(),
group_id: coerce.string().optional(),
message_id: coerce.string().optional(),
user_id: actionType.string().optional(),
group_id: actionType.string().optional(),
message_id: actionType.string().optional(),
});
type PlayloadType = z.infer<typeof SchemaData>;

View File

@@ -2,12 +2,12 @@ import { ActionName } from '@/onebot/action/router';
import { OneBotAction } from '@/onebot/action/OneBotAction';
import { MessageUnique } from '@/common/message-unique';
import { z } from 'zod';
import { coerce } from '@/common/coerce';
import { actionType } from '@/common/coerce';
const SchemaData = z.object({
message_id: coerce.string(),
emoji_id: coerce.string(),
set: coerce.boolean().optional(),
message_id: actionType.string(),
emoji_id: actionType.string(),
set: actionType.boolean().optional(),
});
type Payload = z.infer<typeof SchemaData>;