mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-23 05:10:57 +00:00
15 lines
529 B
Python
15 lines
529 B
Python
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.core.base_crud import CRUDBase
|
|
from app.core.base_schema import AuthSchema
|
|
|
|
from .model import StorageSourceModel
|
|
from .schema import StorageSourceCreateSchema, StorageSourceUpdateSchema
|
|
|
|
|
|
class StorageSourceCRUD(CRUDBase[StorageSourceModel, StorageSourceCreateSchema, StorageSourceUpdateSchema]):
|
|
"""存储源模块数据层"""
|
|
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(model=StorageSourceModel, auth=auth, db=db)
|