feat: 新增agent

This commit is contained in:
2026-09-18 17:34:38 +08:00
parent 0d9b5a21c2
commit bc73668737
64 changed files with 3293 additions and 18 deletions
+13
View File
@@ -0,0 +1,13 @@
"""与 Java ApiResponse 对齐的统一响应。"""
from __future__ import annotations
from typing import Any
def ok(data: Any = None, message: str = "操作成功") -> dict[str, Any]:
return {"code": 0, "message": message, "data": data}
def fail(message: str, code: int = 1) -> dict[str, Any]:
return {"code": code, "message": message, "data": None}