feat: add user-simulation-test team template (系统应用测试团队)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -188,6 +188,24 @@ def create_medical_consultation_template(
|
||||
return {"data": result}
|
||||
|
||||
|
||||
@router.post("/template/user-simulation-test")
|
||||
def create_user_simulation_test_template(
|
||||
workspace_id: Optional[str] = Query(None),
|
||||
db: Session = Depends(get_db),
|
||||
current_user: User = Depends(get_current_user),
|
||||
):
|
||||
"""一键创建「系统应用测试团队」模板。
|
||||
|
||||
自动创建 5 个角色 Agent(测试规划师/功能测试员/体验审核员/边界探索员/性能评估员)并组建团队。
|
||||
若用户已有同名 Agent 则复用。
|
||||
"""
|
||||
svc = TeamService(db)
|
||||
result = svc.create_user_simulation_test_template(
|
||||
user_id=current_user.id, workspace_id=workspace_id,
|
||||
)
|
||||
return {"data": result}
|
||||
|
||||
|
||||
@router.get("")
|
||||
def list_teams(
|
||||
workspace_id: Optional[str] = Query(None),
|
||||
|
||||
Reference in New Issue
Block a user