API-AI-011:用户学习画像保存 / 查询 API #172

Open
opened 2026-06-10 21:03:18 +08:00 by wangdl · 0 comments
Owner

目标

提供用户学习画像的创建、更新、查询接口。

接口建议

GET  /ai/profile
PUT  /ai/profile

请求字段

  • learningGoal
  • currentLevel
  • dailyAvailableMinutes
  • qualityPreference
  • ageRange
  • occupation
  • examTarget
  • learningDeadline
  • learningStyle
  • aiAcceptanceLevel
  • digitalSkillLevel
  • preferredQuestionTypes
  • preferredLanguage

校验规则

  1. dailyAvailableMinutes 必须为正数。
  2. qualityPreference 必须为枚举值。
  3. ageRange 可为空。
  4. occupation 可为空。
  5. preferredQuestionTypes 必须在允许题型范围内。

验收标准

  1. 已登录用户可查询自己的学习画像。
  2. 已登录用户可更新自己的学习画像。
  3. 不允许查询其他用户画像。
  4. 空画像时返回默认结构。
  5. 更新后 updatedAt 正确变化。
  6. 字段校验完整。
  7. 提供 controller/service/repository 测试。
## 目标 提供用户学习画像的创建、更新、查询接口。 ## 接口建议 ``` GET /ai/profile PUT /ai/profile ``` ## 请求字段 - learningGoal - currentLevel - dailyAvailableMinutes - qualityPreference - ageRange - occupation - examTarget - learningDeadline - learningStyle - aiAcceptanceLevel - digitalSkillLevel - preferredQuestionTypes - preferredLanguage ## 校验规则 1. dailyAvailableMinutes 必须为正数。 2. qualityPreference 必须为枚举值。 3. ageRange 可为空。 4. occupation 可为空。 5. preferredQuestionTypes 必须在允许题型范围内。 ## 验收标准 1. 已登录用户可查询自己的学习画像。 2. 已登录用户可更新自己的学习画像。 3. 不允许查询其他用户画像。 4. 空画像时返回默认结构。 5. 更新后 updatedAt 正确变化。 6. 字段校验完整。 7. 提供 controller/service/repository 测试。
wangdl added this to the M-API-AI-RUNTIME:API AI Runtime 调度与落库 milestone 2026-06-10 21:03:18 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#172
No description provided.