This commit is contained in:
手瓜一十雪
2025-04-17 09:54:12 +08:00
parent a2d11a7d7d
commit f3fa3bd25b
88 changed files with 363 additions and 363 deletions

View File

@@ -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>;