update
This commit is contained in:
@@ -308,17 +308,23 @@ def plan_review(payload: PlanReviewRequest) -> dict:
|
||||
|
||||
@router.post("/goal-review")
|
||||
def goal_review(payload: GoalReviewRequest) -> dict:
|
||||
token = background_review.set(True)
|
||||
try:
|
||||
return review_goal(payload)
|
||||
except ValueError:
|
||||
raise HTTPException(422, "目标检查的输入依据不完整或关联不一致")
|
||||
finally:
|
||||
background_review.reset(token)
|
||||
|
||||
@router.post("/decomposition")
|
||||
def decomposition(payload: ReviewRequest) -> dict:
|
||||
token = background_review.set(True)
|
||||
try:
|
||||
return review_decomposition(payload)
|
||||
except ValueError:
|
||||
raise HTTPException(422, "分解检查的输入依据不完整或关联不一致")
|
||||
finally:
|
||||
background_review.reset(token)
|
||||
|
||||
|
||||
@router.get("/skills")
|
||||
|
||||
Reference in New Issue
Block a user