Request with approximately similar Data Classes

Viewed 7

I'm interested in what is best practice when you have two services, which are using approximately similar Data Classes for request, e.g. one service need 7 parameters but second service needs 8 just one additional parameter others are the same, should I have to create another data class? or create a mapper? what should I do in this case?

0 Answers
Related