@Api(value = "DemoController", description = "使用例子")
public class DemoController{
@ApiOperation
@ApiImplicitParams({
@ApiImplicitParam(name = "testStr", value = "测试str", paramType = "query")
})
public CommonResponse testMethod(String testStr){
return null;
}
}
@ApiModel(value = "TestReq", description = "测试使用类")
public class TestReq{
@ApiModelProperty(value = "id 测试用id", name = "id", required = true)
private Long id;
}