mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
fix
This commit is contained in:
@@ -5,17 +5,17 @@ import { ChatType, Peer } from '@/core/types';
|
||||
import { MessageUnique } from '@/common/message-unique';
|
||||
import { z } from 'zod';
|
||||
import { NetworkAdapterConfig } from '@/onebot/config/config';
|
||||
import { actionType } from '@/common/coerce';
|
||||
import { coerce } from '@/common/coerce';
|
||||
|
||||
interface Response {
|
||||
messages: OB11Message[];
|
||||
}
|
||||
|
||||
const SchemaData = z.object({
|
||||
group_id: actionType.string(),
|
||||
message_seq: actionType.string().optional(),
|
||||
count: actionType.number().default(20),
|
||||
reverseOrder: actionType.boolean().default(false)
|
||||
group_id: coerce.string(),
|
||||
message_seq: coerce.string().optional(),
|
||||
count: coerce.number().default(20),
|
||||
reverseOrder: coerce.boolean().default(false)
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user