mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
15 lines
567 B
Python
15 lines
567 B
Python
from felicity.apps.abstract import BaseService
|
|
from felicity.apps.abstract.service import E
|
|
from felicity.apps.auditlog.entities import AuditLog
|
|
from felicity.apps.auditlog.repositories import AuditLogRepository
|
|
from felicity.apps.common.schemas.dummy import Dummy
|
|
from felicity.apps.common.utils.serializer import marshaller
|
|
|
|
|
|
class AuditLogService(BaseService[AuditLog, Dummy, Dummy]):
|
|
def __init__(self) -> None:
|
|
super().__init__(AuditLogRepository)
|
|
|
|
async def create(self, c) -> E:
|
|
c = marshaller(c)
|
|
return await super().create(c)
|