第四批(T15 编排/T16 视觉诊断/T17 文案校验)协调提交: - 迁移 0006:rp_report(result JSONB 按阶段键承载中间态)/rp_input (derived_features 视觉中间态)/rp_share(V1 只建结构) - ORM 三模型;错误码 40420/40920(文案无价格字样) - 配置:report_pipeline_stages(dotted path 动态装配)+ vision/tier - packages/report/pipeline.py:Stage Protocol + ReportContext(三任务共同契约, 动态 import 的动机与代价写在 docstring) - 路由桩 reports.py 已注册
12 lines
326 B
Python
12 lines
326 B
Python
"""报告路由(骨架,T15 填充实现)。
|
||
|
||
POST /reports、GET /reports、GET /reports/{id}、POST /reports/{id}/regenerate;
|
||
实现契约见 docs/开发任务包/T15-报告域骨架.md。
|
||
"""
|
||
|
||
from __future__ import annotations
|
||
|
||
from fastapi import APIRouter
|
||
|
||
router = APIRouter(prefix="/reports", tags=["reports"])
|