API-AI-022:创建 AI 学习状态分析 Job #193

Closed
opened 2026-06-11 21:50:29 +08:00 by wangdl · 0 comments
Owner

目标

提供 POST /ai/analysis/jobs 创建学习状态分析任务。

请求字段

targetType (user/material/knowledge_point), targetId, forceRefreshSnapshot

流程

校验登录 → 校验 allowAiAnalysis → 校验 target 权限 → 创建或复用 Snapshot → 创建 AiRuntimeJob → 返回 jobId

targetType=knowledge_base 暂不在 P0/P1 强制实现,后续通过 parentJob+childJob 支持。

验收

用户只能给自己的数据创建分析任务;allowAiAnalysis=false 拒绝;支持 idempotencyKey;支持 forceRefreshSnapshot;返回 jobId+status

## 目标 提供 POST /ai/analysis/jobs 创建学习状态分析任务。 ## 请求字段 targetType (user/material/knowledge_point), targetId, forceRefreshSnapshot ## 流程 校验登录 → 校验 allowAiAnalysis → 校验 target 权限 → 创建或复用 Snapshot → 创建 AiRuntimeJob → 返回 jobId ## targetType=knowledge_base 暂不在 P0/P1 强制实现,后续通过 parentJob+childJob 支持。 ## 验收 用户只能给自己的数据创建分析任务;allowAiAnalysis=false 拒绝;支持 idempotencyKey;支持 forceRefreshSnapshot;返回 jobId+status
wangdl added this to the M-API-AI-RUNTIME:API AI Runtime 调度与落库 milestone 2026-06-11 21:50:29 +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#193
No description provided.