Files
wenzi/docs/admin-demo-auth.md
Your Name 91a0b77f7a test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl
- 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE
- 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查
- 所有1266个测试用例通过
- 覆盖率: 指令81.89%, 行88.48%, 分支51.55%

docs: 添加项目状态报告
- 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
- 包含质量指标、已完成功能、待办事项和技术债务
2026-03-02 13:31:54 +08:00

18 lines
768 B
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.
# Admin 演示模式与鉴权接入说明
## 演示模式
- 未登录默认进入演示管理员视图。
- 登录页提供“一键登录(演示管理员)”。
- 顶部角色切换器支持管理员/运营/只读,便于验证权限与菜单差异。
## 后续接入真实鉴权
1. 实现新的 AuthAdapter如 RealAuthAdapter
- 使用后端登录/注册接口获取 token 与用户信息。
2.`stores/auth.ts` 中切换为 RealAuthAdapter。
3.`services/api/ApiDataService.ts` 中接入真实 API 调用。
4. 保持服务接口返回结构与演示服务一致,减少页面改动。
## 注意
- 当前演示数据来自 `frontend/admin/src/services/demo/DemoDataService.ts`
- 权限矩阵在 `frontend/admin/src/auth/roles.ts`