规定数据类型

This commit is contained in:
2026-04-24 01:45:41 +08:00
parent d1943f564a
commit 35eff3faf6
86 changed files with 3809 additions and 0 deletions

1
server/src/.gitkeep Normal file
View File

@@ -0,0 +1 @@
# NestJS Backend Directory Structure

View File

@@ -0,0 +1 @@
// Controllers will be placed here

View File

@@ -0,0 +1 @@
// Configuration Management will be placed here

View File

@@ -0,0 +1 @@
// Dependency Injection Tokens will be placed here

View File

@@ -0,0 +1 @@
// Exception Filters will be placed here

View File

@@ -0,0 +1 @@
// Guards and Middleware will be placed here

View File

@@ -0,0 +1 @@
// Request/Response Interceptors will be placed here

View File

@@ -0,0 +1 @@
// Utility Functions and Helpers will be placed here

1
server/src/dto/.gitkeep Normal file
View File

@@ -0,0 +1 @@
// DTOs and Validation will be placed here

View File

@@ -0,0 +1 @@
// Interfaces for Dependency Injection will be placed here

1
server/src/llm/.gitkeep Normal file
View File

@@ -0,0 +1 @@
// Vercel AI SDK integration will be placed here

View File

@@ -0,0 +1 @@
// LLM Providers (OpenAI, Claude, Local, etc.) will be placed here

View File

@@ -0,0 +1 @@
// LLM Tools and Function Calling will be placed here

View File

@@ -0,0 +1 @@
// Character Module will be placed here

View File

@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { CharacterController } from '../../controllers/character.controller';
import { CharacterService } from '../../services/character.service';
@Module({
controllers: [CharacterController],
providers: [CharacterService],
exports: [CharacterService],
})
export class CharacterModule {}

View File

@@ -0,0 +1 @@
// Chat Module will be placed here

View File

@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { ChatController } from '../../controllers/chat.controller';
import { ChatService } from '../../services/chat.service';
@Module({
controllers: [ChatController],
providers: [ChatService],
exports: [ChatService],
})
export class ChatModule {}

View File

@@ -0,0 +1 @@
// Import/Export Module will be placed here

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { ImportExportController } from '../../controllers/import-export.controller';
@Module({
controllers: [ImportExportController],
})
export class ImportExportModule {}

View File

@@ -0,0 +1 @@
// LLM Module will be placed here

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { LLMController } from '../../controllers/llm.controller';
@Module({
controllers: [LLMController],
})
export class LLMModule {}

View File

@@ -0,0 +1 @@
// Workflow Module will be placed here

View File

@@ -0,0 +1,6 @@
import { Module } from '@nestjs/common';
@Module({
imports: [],
})
export class WorkflowModule {}

View File

@@ -0,0 +1 @@
// Persistence Module will be placed here

View File

@@ -0,0 +1 @@
// File System Implementations will be placed here

View File

@@ -0,0 +1 @@
// Repository Interfaces will be placed here

View File

@@ -0,0 +1 @@
// Data Migration Scripts will be placed here

View File

@@ -0,0 +1 @@
// Services (Business Logic) will be placed here

View File

@@ -0,0 +1 @@
// Context Management and Chunking will be placed here

View File

@@ -0,0 +1 @@
// Prompt Assembly and Templates will be placed here

View File

@@ -0,0 +1 @@
// Token Counting and Estimation will be placed here

View File

@@ -0,0 +1 @@
// Workflow Engine will be placed here