feat(project): 项目完结
This commit is contained in:
31
frontend/src/types/api.ts
Normal file
31
frontend/src/types/api.ts
Normal 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
9
frontend/src/types/env.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
__ENV?: {
|
||||
NEXT_PUBLIC_API_BASE_URL: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user