792 B
792 B
1. 数据模型与迁移
- 1.1 Prisma:
Tenant加brandName/logoUrl/themeColor/copyright(可空) - 1.2 生成并部署 migration
2. 后端
- 2.1
tenantsDTO:Create/Update 加品牌字段;list 返回品牌字段 - 2.2
auth加GET /auth/brand(仅登录态),返回当前租户品牌
3. 前端
- 3.1
api/auth.ts加fetchBrand;api/tenant.ts类型扩展品牌字段 - 3.2 auth store 加
brand状态 - 3.3 layout 登录后拉取品牌并应用:主题色/标题/Logo/版权
- 3.4 租户管理表单加品牌字段
4. 验证
- 4.1 后端 build + 单测 + e2e 通过
- 4.2 前端 type-check 通过
- 4.3 冒烟:设置租户品牌 → GET /auth/brand 返回 → 前端应用主题色/标题