12 lines
335 B
Python
12 lines
335 B
Python
from models import Module
|
|
from repositories import ModuleRepository
|
|
from schemas.module import ModuleSchema
|
|
from services.mixins import *
|
|
|
|
|
|
class ModuleService(ServiceGetAllMixin[Module, ModuleSchema]):
|
|
schema_class = ModuleSchema
|
|
|
|
def __init__(self, session: AsyncSession):
|
|
self.repository = ModuleRepository(session)
|