This commit is contained in:
手瓜一十雪
2025-04-17 09:54:12 +08:00
parent a2d11a7d7d
commit f3fa3bd25b
88 changed files with 363 additions and 363 deletions

View File

@@ -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)
});