13 lines
390 B
Python
13 lines
390 B
Python
from app.controllers.abc import IUserController
|
|
from app.dtos.user_batch import BatchUsersDTO
|
|
from app.services.abc import IUserService
|
|
|
|
|
|
class UserController(IUserController):
|
|
|
|
def __init__(self, user_service: IUserService):
|
|
self._service = user_service
|
|
|
|
async def batch_import(self, batch: BatchUsersDTO):
|
|
return await self._service.batch_users(batch)
|