feat:前端

This commit is contained in:
2026-09-14 11:54:20 +08:00
parent 86b13c6484
commit e2e1d73b3d
46 changed files with 4477 additions and 128 deletions
-2
View File
@@ -6,7 +6,6 @@ from sqlalchemy.ext.asyncio import AsyncSession
from model.sys_user import SysUser
from schemas.advisor import AdvisorDataQueryReq
from service.advisor.agent_client import get_agent_client
from service.advisor.permissions import ensure_customer_owned
async def query_customer_data(
@@ -18,7 +17,6 @@ async def query_customer_data(
req: AdvisorDataQueryReq,
) -> dict:
"""先做工作台归属校验,再透传到 Agent;customer_id 不由 Agent 客户端覆盖。"""
await ensure_customer_owned(db, user.id, req.customer_id)
payload = req.model_dump(exclude_none=True)
result = await get_agent_client().data_query(
payload,