Fundamental_Analysis/docs
Lv, Qi 427776b863 feat(analysis): Implement Configurable Analysis Template Engine
This commit introduces a comprehensive, template-based analysis orchestration system, refactoring the entire analysis generation workflow from the ground up.

Key Changes:

1.  **Backend Architecture (`report-generator-service`):**
    *   Replaced the naive analysis workflow with a robust orchestrator based on a Directed Acyclic Graph (DAG) of module dependencies.
    *   Implemented a full topological sort (`petgraph`) to determine the correct execution order and detect circular dependencies.

2.  **Data Models (`common-contracts`, `data-persistence-service`):**
    *   Introduced the concept of `AnalysisTemplateSets` to allow for multiple, independent, and configurable analysis workflows.
    *   Created a new `analysis_results` table to persist the output of each module for every analysis run, ensuring traceability.
    *   Implemented a file-free data seeding mechanism to populate default analysis templates on service startup.

3.  **API Layer (`api-gateway`):**
    *   Added a new asynchronous endpoint (`POST /analysis-requests/{symbol}`) to trigger analysis workflows via NATS messages.
    *   Updated all configuration endpoints to support the new `AnalysisTemplateSets` model.

4.  **Frontend UI (`/config`, `/query`):**
    *   Completely refactored the "Analysis Config" page into a two-level management UI for "Template Sets" and the "Modules" within them, supporting full CRUD operations.
    *   Updated the "Query" page to allow users to select which analysis template to use when generating a report.

This new architecture provides a powerful, flexible, and robust foundation for all future development of our intelligent analysis capabilities.
2025-11-18 07:47:08 +08:00
..
1_requirements refactor(architecture): Align frontend & docs with DB gateway pattern 2025-11-17 01:29:56 +08:00
2_architecture feat(config): 将服务配置全面迁移至数据库 2025-11-18 05:58:18 +08:00
3_project_management feat(analysis): Implement Configurable Analysis Template Engine 2025-11-18 07:47:08 +08:00
4_archive reorg docs 2025-11-17 00:58:43 +08:00
5_data_dictionary reorg docs 2025-11-17 00:58:43 +08:00
README.md refactor(architecture): Align frontend & docs with DB gateway pattern 2025-11-17 01:29:56 +08:00

项目文档中心

欢迎来到基本面选股系统的文档中心。本文档旨在作为项目所有相关文档的入口和导航,帮助团队成员快速找到所需信息。

概览

本文档库遵循特定的结构化命名和分类约定,旨在清晰地分离不同领域的关注点。主要目录结构如下:

  • /1_requirements: 存放所有与产品需求和用户功能相关的文档。
  • /2_architecture: 包含系统高级架构、设计原则和核心规范。
  • /3_project_management: 用于项目跟踪、开发日志和任务管理。
  • /4_archive: 存放已合并或过时的历史文档。
  • /5_data_dictionary: 定义系统中使用的数据模型和字段。

快速导航

以下是项目中几个最核心文档的快速访问链接,直接指向其关键章节。

1. 需求与功能

2. 架构与设计

3. 数据与模型

4. 项目管理