fix: 优化一些配置

This commit is contained in:
sophie committed 2026-07-30 16:49:27 +08:00
1 parent ac7b53a523
commit eb21af5949
17 files changed
+117 -208

No files matched your search

+4 -1
View File
@@ -2,10 +2,12 @@
backend/app/api/user/handlers.py
用途:当前用户域 API(Casdoor 登录、企微 OAuth、首页、FAQ、反馈等)。
依赖:app.core.auth.jwt、app.core.errors、models、wecom/dify 相关 services。
依赖:sqlalchemy(and_/or_、exc)、app.core.errors、models、wecom/dify 相关 services。
逻辑:薄路由层鉴权与参数校验;Casdoor/企微 OAuth 委托 services/auth/*。
"""
from flask import Blueprint, request, jsonify, current_app
from sqlalchemy import and_, or_
from sqlalchemy.exc import DatabaseError, OperationalError
from app import db
from app.models import User, Agent, QuickQuestion, UserFavoriteAgent, UserDefaultAgent, UserHomepageConfig, GeneralFeedback, ChatLog
from app.services.feedback_notify import send_feedback_group_notification
@@ -18,6 +20,7 @@ from app.core.errors import (
AppError,
ForbiddenError,
NotFoundError,
ServiceUnavailableError,
UnauthorizedError,
ValidationError,
)