feat(ECR-011): 昵称、首页贴士与档案 Self 唯一/合盘交叉校验
每账号仅一条 self(migration 40902);合盘只选 TA;账号昵称可改;首页穿衣/颜色/养生贴士。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+36
-2
@@ -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: 更新个人档案
|
||||
|
||||
Reference in New Issue
Block a user