You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
592 B
Python
20 lines
592 B
Python
from app.core.base_crud import CRUDBase
|
|
from app.core.base_schema import AuthSchema
|
|
|
|
from .model import LoginLogModel, OperationLogModel
|
|
from .schema import LoginLogCreateSchema
|
|
|
|
|
|
class LoginLogCRUD(CRUDBase[LoginLogModel, LoginLogCreateSchema, None]):
|
|
"""登录日志数据层"""
|
|
|
|
def __init__(self, auth: AuthSchema) -> None:
|
|
super().__init__(model=LoginLogModel, auth=auth)
|
|
|
|
|
|
class OperationLogCRUD(CRUDBase[OperationLogModel, None, None]):
|
|
"""操作日志 CRUD"""
|
|
|
|
def __init__(self, auth: AuthSchema):
|
|
super().__init__(model=OperationLogModel, auth=auth)
|