Files
novalon-manage-system/task_plan.md
T
张翔 b0f91d74f5 feat: 统一JWT密钥配置并修复签名验证问题
修复前端签名生成中bodyString硬编码问题
添加start-frontend.sh脚本启动前端服务
统一manage-app和gateway的JWT密钥配置
修复Repository扫描路径问题
更新测试配置和依赖
重构表名映射为sys_user和sys_role
完善用户实体类字段映射
添加集成测试配置和测试用例
2026-04-02 12:28:49 +08:00

121 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Task Plan: 系统修复验证与命名规范统一
## Goal
验证JWT和签名修复的效果,并统一Service和Repository的命名规范,确保系统稳定性和代码一致性。
## Context
经过Systematic Debugging,已修复以下问题:
1. JWT密钥不一致(manage-app和gateway使用不同密钥)
2. 签名验证问题(前端bodyString硬编码为空)
3. Repository扫描缺失(AuditLogRepository未被扫描)
4. JwtKeyService初始化问题(多个实例)
现在需要:
1. 重启服务验证修复效果
2. 运行测试套件确保功能正常
3. 统一命名规范以提高代码可维护性
## Phases
### Phase 1: 服务重启与验证
**Status:** `complete`
**Goal:** 重启所有服务,确保修复生效
**Steps:**
- [x] 停止所有运行中的服务(gateway, app, frontend
- [x] 清理临时文件和日志
- [x] 启动后端服务(gateway, app
- [x] 启动前端服务
- [x] 验证服务健康状态
**Files Modified:**
-
**Errors Encountered:**
-
**Verification:**
- Gateway (8080): ✅ UP
- App (8084): ✅ UP
- Frontend (3002): ✅ UP
### Phase 2: 测试套件验证
**Status:** `pending`
**Goal:** 运行测试套件,验证修复效果
**Steps:**
- [ ] 运行后端单元测试
- [ ] 运行后端集成测试
- [ ] 运行E2E测试(登录、用户管理、角色管理等)
- [ ] 分析测试结果
- [ ] 修复失败的测试(如果有)
**Files Modified:**
-
**Errors Encountered:**
-
### Phase 3: 命名规范统一 - Service层
**Status:** `pending`
**Goal:** 统一Service接口和实现的命名规范
**Steps:**
- [ ] 扫描所有Service接口和实现
- [ ] 重命名Service接口为IXxxService
- [ ] 重命名Service实现为XxxService
- [ ] 更新所有引用
- [ ] 验证编译通过
**Files Modified:**
- 待确定
**Errors Encountered:**
-
### Phase 4: 命名规范统一 - Repository层
**Status:** `pending`
**Goal:** 统一Repository接口和实现的命名规范
**Steps:**
- [ ] 扫描所有Repository接口和实现
- [ ] 重命名Repository接口为IXxxRepository
- [ ] 重命名Repository实现为XxxRepository
- [ ] 更新所有引用
- [ ] 验证编译通过
**Files Modified:**
- 待确定
**Errors Encountered:**
-
### Phase 5: 最终验证
**Status:** `pending`
**Goal:** 确保所有修改正确且系统稳定
**Steps:**
- [ ] 运行完整测试套件
- [ ] 验证所有功能正常
- [ ] 更新文档
- [ ] 生成最终报告
**Files Modified:**
- 待确定
**Errors Encountered:**
-
## Dependencies
- 所有服务必须正常运行
- 测试环境配置正确
- 代码编译无错误
## Success Criteria
1. 所有服务正常启动
2. 所有测试通过
3. 命名规范统一完成
4. 代码编译无错误
5. 功能验证通过
## Risk Mitigation
- 重命名前备份代码
- 分步骤执行,每步验证
- 保留原文件直到确认无误
- 使用IDE重构工具确保引用更新完整