0
我的情況下,域類如下階嵌套的理解與期貨
case class Account(randomId: String, accounts: List[String]) // for each of accounts i need to get AccountProfiles.
case class AccountProfiles(actId: String, profiles: List[String], additionalInfo: Map[String, String], ......)
case class AccountInfo(id: String, profiles:List[String]) // for each of AccountProfiles I need to construct AccountInfo
我的接入層實現簽名提取領域類上面看起來像下面
getLinked(): Future[Account]
getAccountProfile(actId: String): Future[AccountProfiles]
我能有一個for
修真在getLinked
和getAccountProfile
方法的幫助下構造Future
域對象列表AccountInfo
?
我可以知道如何處理此流程中的異常嗎? –