This commit is contained in:
手瓜一十雪 committed 2025-04-17 09:54:12 +08:00
1 parent 54e6d5c3f2
commit 41dccd98a9
88 files changed
+363 -363

No files matched your search

@@ -6,11 +6,11 @@ import { uriToLocalFile } from '@/common/file';
import { SendMessageContext } from '@/onebot/api';
import { ContextMode, createContext } from '@/onebot/action/msg/SendMsg';
import { z } from 'zod';
import { actionType } from '@/common/coerce';
import { coerce } from '@/common/coerce';
const SchemaData = z.object({
user_id: actionType.string(),
file: actionType.string(),
name: actionType.string(),
user_id: coerce.string(),
file: coerce.string(),
name: coerce.string(),
});
type Payload = z.infer<typeof SchemaData>;