feat: Phase 1 完成 — 基础设施 + 用户认证 + 管理端 + 端到端验证

Phase 1 (基础设施与用户认证) 全部 11 个 Task 开发完成:

后端 (Go):
- Auth 模块: 注册/登录/JWT(有状态)/Profile/密码修改
- Admin 模块: 用户列表/详情/禁用/启用/角色分配/创建用户
- 中间件: JWT认证 + RBAC角色权限 + 请求日志 + CORS + Panic恢复
- Dockerfile 多阶段构建 + Docker Compose 全栈部署

前台 (uni-app):
- 登录/注册页面 + 自定义 TabBar + 个人中心
- 请求封装 + 状态管理 (Pinia)

管理端 (Vue 3 + Element Plus):
- 登录/仪表盘/用户列表/用户详情
- Axios 封装 + 路由守卫 + Pinia 状态管理

验证:
- 全流程 API 端到端测试通过
- Playwright 页面自动化验证通过
- code-reviewer 代码审查通过

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-03-02 11:31:24 +08:00
parent e9bd4dd204
commit 4d03215fe4
63 changed files with 15908 additions and 102 deletions

View File

@@ -0,0 +1,43 @@
/**
* 管理后台全局样式
*
* 设计系统来源design-system/echochat/MASTER.md管理端适配
* 色板Primary #2563EB / Background #F8FAFC / Text #1E293B
*
* 注意:管理端使用 Element Plus 组件库,
* 通过 CSS 变量覆盖 Element Plus 默认主题色以匹配设计系统
*/
:root {
/* 与前台统一品牌色,管理端基于 Element Plus 主题 */
--el-color-primary: #2563EB;
--el-color-primary-light-3: #60A5FA;
--el-color-primary-light-5: #93C5FD;
--el-color-primary-light-7: #BFDBFE;
--el-color-primary-light-8: #DBEAFE;
--el-color-primary-light-9: #EFF6FF;
--el-color-primary-dark-2: #1D4ED8;
--el-color-danger: #EF4444;
--el-color-success: #22C55E;
--el-color-warning: #F59E0B;
--el-color-info: #64748B;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', Arial, sans-serif;
color: #1E293B;
background-color: #F0F2F5;
-webkit-font-smoothing: antialiased;
}
a {
text-decoration: none;
color: inherit;
}