Files
leaudit-platform-backend/fastapi_modules/fastapi_leaudit/services/authService.py
T
wren 535d97a70c chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments,
FastAPI project structure (admin/common/modules),
DSL rule files, and schema migration scripts.
2026-04-27 16:48:22 +08:00

23 lines
728 B
Python

"""认证服务接口。"""
from abc import ABC, abstractmethod
from fastapi_modules.fastapi_leaudit.domian.vo.auth.loginTokenVo import LoginTokenVO
class IAuthService(ABC):
"""认证服务接口。"""
@abstractmethod
async def PasswordLogin(self, Sub: str, Password: str) -> LoginTokenVO:
"""账密登录。"""
...
@abstractmethod
async def OAuthLogin(self, Sub: str, Username: str | None, Nickname: str | None,
Email: str | None, PhoneNumber: str | None,
OuId: str | None, OuName: str | None,
IsLeader: bool | None, Area: str | None, ExpiresIn: int) -> LoginTokenVO:
"""OAuth 登录。"""
...