我向客户端公开了类似
的java客户端对象public abstract class Vehicle{
string id;
string name;
Enginer engine;
}
public class MotorVehicle extends Vehicle {
int numOfWheels;
}
public class Engine {
Rotor rotor;
Stator stator;
AirGap airgap;
}
现在我的业务层级层次结构相同,但性质上差别不大。
public abstract class VehicleBusinessModel{
string id;
string name;
}
public class MotorVehicleBusinessModel extends VehicleBusinessModel {
int numOfWheels;
}
public class EngineBusinessModel {
Rotor rotor;
Stator stator;
AirGap airgap;
Windings windings;
}
验证客户端结构然后转换为业务结构的最佳方法是什么?
感谢。