2019-05-16 10:28
@yyyyangzi
可以的
在接口上加注解@ApiRequests(request = RechargePageVo.class)
然后RechargePageVo类里的各属性加上注解 @ApiParam(description = "查询添加开始时间")
2019-05-05 13:13
@yyyyangzi
@ApiModel(description = "图片上传成功后返回的信息")
public class PhotoDto {
@ApiParam(description = "图片id")
private Integer id;
@ApiParam(description = "图片MD5值")
private Integer md5;
@ApiParam(description = "图片地址")
private Integer url;
@ApiParam(description = "图片原文件名")
private String originalFileName;
@ApiParam(description = "图片类型")
private String fileType;
@ApiParam(description = "图片宽度")
private Integer width;
@ApiParam(description = "图片高度")
private Integer height;
@ApiParam(description = "图片上传时间")
private Integer addTime;
}
2019-04-30 19:03
@kumi 插件配置了吗 docApiUrl参数这个不要变("swagger/api"),这个是请求数据的接口
me.add(new SwaggerPlugin(WebConfig.enable_swagger)
.addSwaggerDoc(
new SwaggerDoc("127.0.0.1", "XXX.controller", "WEB端接口", "swagger/api"))
);