import io.swagger.annotations.ApiModel;
@ApiModel(subTypes = {SubClass.class})
class BaseClass {
...
}
import io.swagger.annotations.ApiModel;
@ApiModel(subTypes = {SubClass.class})
class BaseClass {
...
}
import io.swagger.annotations.ApiModel; @ApiModel(subTypes = {SubClass.class}) class BaseClass { ... }
这个subTypes主要起什么作用,我现在有个接口用了策略模式,接口的返回值类型是父类,怎么才能把实际返回的子类的结构也放到swagger呢?
有结果么