src.interactor.interfaces.repositories package

Submodules

src.interactor.interfaces.repositories.profession_repository module

This module contains the interface for the ProfessionRepository

class src.interactor.interfaces.repositories.profession_repository.ProfessionRepositoryInterface

Bases: ABC

This class is the interface for the ProfessionRepository

abstract create(name: str, description: str) Profession | None

Create a Profession

Parameters:
  • name – Profession Name

  • description – Profession Description

Returns:

ProfessionId

abstract get(profession_id: UUID) Profession | None

Get a Profession by id

Parameters:

profession_id – ProfessionId

Returns:

Profession

abstract update(profession: Profession) Profession | None

Save a Profession

Parameters:

Profession – Profession

Returns:

Profession

Module contents