661e417619
- Move src/data/{api,dto,schemas} directories to src/data/services/*
- Update all relative imports across the codebase to reference new paths
- Use CSS color tokens for splash button gradient in splash-button.module.css
- Add responsive sizes attribute to splash background image
- Add JSDoc documentation to splash-background component referencing original Dart implementation
17 lines
522 B
TypeScript
17 lines
522 B
TypeScript
/**
|
|
* 聊天历史响应
|
|
* 原始 Dart: ChatHistoryResponse (lib/data/models/chat/chat_response.dart)
|
|
*/
|
|
import { z } from "zod";
|
|
import { ChatMessageSchema } from "./chat_message";
|
|
|
|
export const ChatHistoryResponseSchema = z.object({
|
|
messages: z.array(ChatMessageSchema),
|
|
total: z.number().default(0),
|
|
limit: z.number(),
|
|
offset: z.number(),
|
|
});
|
|
|
|
export type ChatHistoryResponseInput = z.input<typeof ChatHistoryResponseSchema>;
|
|
export type ChatHistoryResponseData = z.output<typeof ChatHistoryResponseSchema>;
|