liuyun ed9af5337d
Some checks are pending
CI / backend (push) Waiting to run
CI / frontend (push) Waiting to run
docs(spec): 归档 tenant-brand + 同步租户品牌主 spec
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 22:33:21 +08:00

792 B
Raw Blame History

1. 数据模型与迁移

  • 1.1 Prisma:Tenant 加 brandName/logoUrl/themeColor/copyright(可空)
  • 1.2 生成并部署 migration

2. 后端

  • 2.1 tenants DTO: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 返回 → 前端应用主题色/标题