Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个类是从 Web 服务获取的响应,希望将它们包含在我的模型中,但不更改它们,因为它们应该仅代表服务响应,仅此而已。
除了复制这些类并向它们添加一个id之外,如何实现这一点?