|
|
@@ -146,18 +146,7 @@ def _build_api_response(
|
|
|
@app.post("/api/v1/content/tasks/decode")
|
|
|
def decode_content(param: DecodeContentParam):
|
|
|
"""创建解构任务"""
|
|
|
- res = begin_decode_task(param)
|
|
|
- code = res.get("code", -1)
|
|
|
- task_id = res.get("task_id")
|
|
|
- reason = res.get("reason", "")
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- return _build_api_response(
|
|
|
- code=code,
|
|
|
- data={"task_id": task_id} if task_id else None,
|
|
|
- reason=reason
|
|
|
- )
|
|
|
+ return _build_api_response(code=-1, reason="服务暂时关闭")
|
|
|
|
|
|
@app.get("/api/v1/content/tasks/{taskId}")
|
|
|
def get_task_detail(taskId: str):
|
|
|
@@ -174,16 +163,7 @@ def get_task_detail(taskId: str):
|
|
|
@app.post("/api/v1/content/tasks/pattern")
|
|
|
def pattern_content(param: PatternContentParam):
|
|
|
"""创建聚类任务"""
|
|
|
- res = begin_pattern_task(param)
|
|
|
- code = res.get("code", -1)
|
|
|
- task_id = res.get("task_id")
|
|
|
- reason = res.get("reason", "")
|
|
|
-
|
|
|
- return _build_api_response(
|
|
|
- code=code,
|
|
|
- data={"task_id": task_id} if task_id else None,
|
|
|
- reason=reason
|
|
|
- )
|
|
|
+ return _build_api_response(code=-1, reason="服务暂时关闭")
|
|
|
|
|
|
|
|
|
@app.post("/api/v1/content/topics/search")
|