mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
import { actionType } from '@/common/coerce';
|
||||
import { coerce } from '@/common/coerce';
|
||||
|
||||
const SchemaData = z.object({
|
||||
times: actionType.number().default(1),
|
||||
user_id: actionType.string()
|
||||
times: coerce.number().default(1),
|
||||
user_id: coerce.string()
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user