refactor: 收口 V3 分层架构与插件兼容边界

This commit is contained in:
jxxghp
2026-08-18 13:22:02 +08:00
parent cca99bd421
commit 8472bcff43
274 changed files with 10730 additions and 6130 deletions
+4 -4
View File
@@ -1,12 +1,11 @@
import secrets
from dataclasses import dataclass
from typing import Literal, Optional, Tuple, Union
from typing import Any, Literal, Optional, Tuple, Union
from app.chain import ChainBase
from app.runtime.config import settings
from app.application.security.access import get_password_hash, verify_password
from app.db.models.user import User
from app.db.oper.user import UserOper
from app.application.security.token import get_password_hash, verify_password
from app.application.chain.data import UserPortProxy as UserOper
from app.runtime.log import logger
from app.schemas.event import AuthCredentials
from app.schemas.event import AuthInterceptCredentials
@@ -14,6 +13,7 @@ from app.schemas.types import ChainEventType
from app.application.security.otp import OtpUtils
PASSWORD_INVALID_CREDENTIALS_MESSAGE = "用户名、密码或验证码错误"
User = Any
MfaMethod = Literal["otp"]