mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 08:10:25 +00:00
@@ -2,12 +2,12 @@ import { PacketHexStr } from '@/core/packet/transformer/base';
|
||||
import { GetPacketStatusDepends } from '@/onebot/action/packet/GetPacketStatus';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
import { coerce } from '@/common/coerce';
|
||||
import { actionType } from '@/common/coerce';
|
||||
|
||||
const SchemaData = z.object({
|
||||
cmd: coerce.string(),
|
||||
data: coerce.string(),
|
||||
rsp: coerce.boolean().default(true),
|
||||
cmd: actionType.string(),
|
||||
data: actionType.string(),
|
||||
rsp: actionType.boolean().default(true),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user