mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
@@ -3,8 +3,8 @@ import { GetPacketStatusDepends } from '@/onebot/action/packet/GetPacketStatus';
|
||||
import { z } from 'zod';
|
||||
|
||||
const SchemaData = z.object({
|
||||
group_id: z.coerce.string().optional(),
|
||||
user_id: z.coerce.string(),
|
||||
group_id: z.union([z.coerce.number(), z.coerce.string()]).optional(),
|
||||
user_id: z.union([z.coerce.number(), z.coerce.string()]),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
Reference in New Issue
Block a user