2024-08-07 14:32:35 +08:00
|
|
|
from felicity.apps.abstract import BaseService
|
2024-09-20 22:18:26 +08:00
|
|
|
from felicity.apps.abstract.service import E
|
2024-08-07 14:32:35 +08:00
|
|
|
from felicity.apps.auditlog.entities import AuditLog
|
|
|
|
from felicity.apps.auditlog.repositories import AuditLogRepository
|
|
|
|
from felicity.apps.common.schemas.dummy import Dummy
|
2024-09-21 00:17:55 +08:00
|
|
|
from felicity.apps.common.utils.serializer import marshaller
|
2024-08-07 14:32:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
class AuditLogService(BaseService[AuditLog, Dummy, Dummy]):
|
|
|
|
def __init__(self) -> None:
|
|
|
|
super().__init__(AuditLogRepository)
|
2024-09-20 22:18:26 +08:00
|
|
|
|
|
|
|
async def create(self, c) -> E:
|
2024-09-21 00:17:55 +08:00
|
|
|
c = marshaller(c)
|
2024-09-20 22:18:26 +08:00
|
|
|
return await super().create(c)
|