mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-02 00:30:25 +00:00
@@ -5,8 +5,8 @@ import { z } from 'zod';
|
||||
import fs from 'node:fs/promises';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
const SchemaData = z.object({
|
||||
file: z.coerce.string(),
|
||||
group_id: z.union([z.coerce.number(), z.coerce.string()])
|
||||
file: z.string(),
|
||||
group_id: z.union([z.number(), z.string()])
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user