feat: 增加会员服务与估价模版智能体

会员服务改为固定栏目,首页在线服务不再进入报告审核。估价模版智能体可多会话制作模版并下载,下载过程显示加载状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 13:36:19 +08:00
1 parent 55b5a87482
commit 2074a45681
63 files changed
+6428 -461

No files matched your search

+3
View File
@@ -16,6 +16,7 @@ from app.models.rbac import (
AdminRoleResource,
AdminUser,
AdminUserRole,
bump_admin_credentials,
utcnow,
)
from app.services.captcha import consume_captcha
@@ -360,6 +361,7 @@ def change_own_password(db: Session, user_id: int, old_password: str, new_passwo
_bad("旧密码错误")
validate_password(new_password)
user.password_hash = hash_password(new_password)
bump_admin_credentials(user)
user.updated_at = utcnow()
commit_or_raise(db, "保存密码失败")
return {"ok": True}
@@ -485,6 +487,7 @@ def reset_user_password(db: Session, user_id: int, password: str) -> dict:
_bad("用户不存在", status.HTTP_404_NOT_FOUND)
validate_password(password)
user.password_hash = hash_password(password)
bump_admin_credentials(user)
user.updated_at = utcnow()
commit_or_raise(db, "保存密码失败")
return {"ok": True}