admin管理员组

文章数量:1128536

I have an Android App with a feature F. There is a specified use case UC. Along with the UC in the domain layer are specified repository interfaces RA and RB and models: A and B. The RA has a method that returns model A. The problem is that model A includes a list of B, so I would like to inject into the RA implementation, the RB to get the list of B and construe model A. Is it the right approach?

API returns model A with a list of IDs of B. The RB to get a B is also used by another UC.

本文标签: mobileCan a repository depend on another one to construe a domain modelStack Overflow