You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue/openspec/changes/refactor-architecture-analysis/tasks.md

1.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Tasks: 架构梳理与交互规范

1. 前端架构分析

  • 1.1 分析 ruoyi-ui 目录结构和模块划分
  • 1.2 梳理组件树和组件依赖关系
  • 1.3 分析路由配置和权限控制机制
  • 1.4 分析 Vuex 状态管理结构
  • 1.5 分析 API 调用层axios 封装、拦截器)
  • 1.6 识别可复用组件和需重构组件
  • 1.7 输出前端架构文档

2. 后端架构分析

  • 2.1 分析 ruoyi-admin 启动配置和模块依赖
  • 2.2 分析 ruoyi-system 系统管理模块结构
  • 2.3 分析 book-system 业务模块结构
  • 2.4 分析 ruoyi-common 和 ruoyi-framework 基础模块
  • 2.5 梳理 MyBatis Mapper 和 XML 映射关系
  • 2.6 分析 AOP 切面(日志、数据权限、限流)
  • 2.7 分析安全配置Spring Security、JWT
  • 2.8 输出后端架构文档

3. 前后端交互分析

  • 3.1 梳理现有 API 接口清单
  • 3.2 分析请求/响应数据格式
  • 3.3 分析错误处理机制和异常链路
  • 3.4 分析分页、排序、过滤实现
  • 3.5 分析文件上传下载接口
  • 3.6 识别交互痛点和不规范之处
  • 3.7 输出前后端交互规范文档

4. 数据库结构分析

  • 4.1 梳理现有数据库表结构
  • 4.2 分析表关系和外键约束
  • 4.3 分析索引使用情况
  • 4.4 识别冗余字段和设计问题
  • 4.5 输出数据库分析文档

5. 输出整合文档

  • 5.1 整合前端架构文档
  • 5.2 整合后端架构文档
  • 5.3 整合前后端交互规范
  • 5.4 输出优化建议清单(至少 10 条)
  • 5.5 输出后续重构路线图

验收标准

  • 所有文档输出到 docs/architecture/ 目录
  • 架构图使用 ASCII 或 Mermaid 格式
  • 交互规范包含完整的 API 设计示例
  • 优化建议清单包含问题描述、影响、推荐方案