feat(project): 项目完结

This commit is contained in:
peakxy
2026-05-30 23:16:49 +08:00
commit 60e7777cbd
97 changed files with 15027 additions and 0 deletions

31
frontend/src/types/api.ts Normal file
View File

@@ -0,0 +1,31 @@
export interface Response<T> {
code: string;
info: string;
data: T;
}
export interface AiAgentConfigResponseDTO {
agentId: string;
agentName: string;
agentDesc: string;
}
export interface CreateSessionRequestDTO {
agentId: string;
userId: string;
}
export interface CreateSessionResponseDTO {
sessionId: string;
}
export interface ChatRequestDTO {
agentId: string;
userId: string;
sessionId: string;
message: string;
}
export interface ChatResponseDTO {
content: string;
}

9
frontend/src/types/env.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
declare global {
interface Window {
__ENV?: {
NEXT_PUBLIC_API_BASE_URL: string;
};
}
}
export {};