feat:前端
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user