1 parent
fca7a65ee0
commit
80a34c82b9
88 files changed
+331
-377
No files matched your search
@@ -1,13 +1,12 @@
|
||||
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
import { actionType } from '../type';
|
||||
|
||||
const SchemaData = z.object({
|
||||
friend_id: actionType.string().optional(),
|
||||
user_id: actionType.string().optional(),
|
||||
temp_block: actionType.boolean().optional(),
|
||||
temp_both_del: actionType.boolean().optional(),
|
||||
friend_id: z.coerce.string().optional(),
|
||||
user_id: z.coerce.string().optional(),
|
||||
temp_block: z.coerce.boolean().optional(),
|
||||
temp_both_del: z.coerce.boolean().optional(),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in new issue
Block a user