feat:新增投顾agent和nl2sqlagent

This commit is contained in:
2026-09-13 16:19:24 +08:00
parent c80c6acac0
commit 163192bf55
122 changed files with 7488 additions and 362 deletions
+4 -1
View File
@@ -138,7 +138,10 @@ async def get_customer_reports(
await ensure_customer_owned(db, user.id, customer_id)
repo = AdvisorReportRepo(db)
items = await repo.list_by_customer(
customer_id, limit=page_size, offset=(page - 1) * page_size
customer_id,
advisor_id=user.id,
limit=page_size,
offset=(page - 1) * page_size,
)
return {
"total": await repo.count_by_advisor(advisor_id=user.id, customer_id=customer_id),