feat(ECR-011): 昵称、首页贴士与档案 Self 唯一/合盘交叉校验
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

每账号仅一条 self(migration 40902);合盘只选 TA;账号昵称可改;首页穿衣/颜色/养生贴士。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-12 22:05:00 +08:00
co-authored by Cursor
parent 5ceb3ce749
commit 13860bf1ef
67 changed files with 1936 additions and 275 deletions
+36 -2
View File
@@ -41,6 +41,29 @@ paths:
'200':
description: OK
/api/v1/auth/me:
get:
tags: [system]
summary: Current account
responses:
'200':
description: OK
patch:
tags: [system]
summary: Update account nickname
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [nickname]
properties:
nickname: { type: string, maxLength: 16 }
responses:
'200':
description: OK
/api/v1/admin/auth/login:
post:
tags: [admin]
@@ -393,6 +416,17 @@ paths:
'200':
description: OK
/api/v1/home/daily-tips:
get:
tags: [system]
summary: Homepage self-card daily tips (clothing / colors / wellness)
description: >
Uses self profile birth + local time hexagram seed and DeepSeek when configured.
Falls back to local tips without LLM or birth profile. DeviceAuth required.
responses:
'200':
description: OK
/api/v1/admin/home/tools:
get:
tags: [admin]
@@ -477,8 +511,8 @@ paths:
- type: object
properties:
data: { $ref: '#/components/schemas/Profile' }
/api/v1/profiles/{id}:
'409':
description: Second self profile (code 40902)
patch:
tags: [profile]
summary: 更新个人档案