Created
August 4, 2019 21:25
-
-
Save jczuchnowski/3ba488ff14eb0215a1a89991b0ffe2fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait PortfolioAssetRepository { | |
def portfolioAssetRepository: PortfolioAssetRepository.Service | |
} | |
object PortfolioAssetRepository { | |
trait Service { | |
def add(name: String, price: BigDecimal): IO[RepositoryException, AssetId] | |
def getById(id: AssetId): IO[RepositoryException, Option[Asset]] | |
def update(id: AssetId, name: String, price: BigDecimal): IO[RepositoryException, Unit] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment