请求参数不校验的bug修改
parent
6294e02b06
commit
d6b87adcea
@ -0,0 +1,67 @@
|
||||
package com.shxy.xymanager_common.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 图片列表给第三方
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "图片列表第三方对象", description = "图片列表第三方对象信息")
|
||||
public class TerminalPhotoListForOpenModel implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "总记录数", example = "120")
|
||||
private long total;
|
||||
@ApiModelProperty(value = "总页数", example = "120")
|
||||
private int totalpage;
|
||||
@ApiModelProperty(value = "当前页", example = "1")
|
||||
private int currentpage;
|
||||
@ApiModelProperty(value = "每页记录数", example = "1")
|
||||
private int pagesize;
|
||||
|
||||
@ApiModelProperty(value = "照片对象", example = "[]")
|
||||
private List<PhotoBean> list;
|
||||
|
||||
@Data
|
||||
public static class PhotoBean {
|
||||
|
||||
@ApiModelProperty(value = "图片id", example = "12321")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "装置编号", example = "123456")
|
||||
private Integer termId;
|
||||
|
||||
@ApiModelProperty(value = "通道编号", example = "123456")
|
||||
private Integer channelId;
|
||||
|
||||
@ApiModelProperty(value = "预置位编号", example = "123456")
|
||||
private Integer presetId;
|
||||
|
||||
@ApiModelProperty(value = "宽度", example = "123456")
|
||||
private Integer width;
|
||||
|
||||
@ApiModelProperty(value = "高度", example = "123456")
|
||||
private Integer height;
|
||||
|
||||
@ApiModelProperty(value = "大小", example = "123456")
|
||||
private Integer fileSize;
|
||||
|
||||
@ApiModelProperty(value = "拍照时间", example = "123456")
|
||||
private Date photoTime;
|
||||
|
||||
@ApiModelProperty(value = "接收时间", example = "123456")
|
||||
private Date recvTime;
|
||||
|
||||
@ApiModelProperty(value = "照片路径", example = "123456")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "拍照方式", example = "123456")
|
||||
private Integer manualRequest;
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.shxy.xymanager_common.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "装置和查询时间提供给第三方", description = "装置和查询时间提供给第三方")
|
||||
public class TerminalAndTimeForOpenVo {
|
||||
|
||||
@NotNull(message = "装置编号不能缺少")
|
||||
@ApiModelProperty(value = "装置编号", example = "123455")
|
||||
private Integer terminalid;
|
||||
|
||||
@NotEmpty(message = "查询开始时间不能缺少")
|
||||
@ApiModelProperty(value = "查询开始时间", example = "123455")
|
||||
private Date starttime;
|
||||
|
||||
@NotEmpty(message = "查询结束时间不能缺少")
|
||||
@ApiModelProperty(value = "查询结束时间", example = "123455")
|
||||
private Date endtime;
|
||||
|
||||
@Min(value = 1, message = "分页位置最小从1开始")
|
||||
@ApiModelProperty(value = "分页位置从1开始", required = true, example = "1")
|
||||
private int pageindex;
|
||||
|
||||
@Min(value = 1, message = "分页大小最小为1")
|
||||
@ApiModelProperty(value = "分页大小", required = true, example = "1")
|
||||
private int pagesize;
|
||||
}
|
Loading…
Reference in New Issue