/video 接口参数兼容 蛇形参数
This commit is contained in:
parent
f7b8960a98
commit
30e96ed6cb
@ -13,6 +13,7 @@ import java.util.Date;
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class VideoReq {
|
||||
|
||||
@NotBlank(message = "设备编码 不能为空")
|
||||
@Schema(description = "设备编码")
|
||||
private String deviceCode;
|
||||
@ -28,4 +29,20 @@ public class VideoReq {
|
||||
@DateTimeFormat(pattern= DatePattern.PURE_DATETIME_PATTERN)
|
||||
@JsonFormat(pattern = DatePattern.PURE_DATETIME_PATTERN)
|
||||
private Date endTime;
|
||||
|
||||
public void setDevice_code(String deviceCode){
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
@DateTimeFormat(pattern= DatePattern.PURE_DATETIME_PATTERN)
|
||||
@JsonFormat(pattern = DatePattern.PURE_DATETIME_PATTERN)
|
||||
public void setStart_time(Date startTime){
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
@DateTimeFormat(pattern= DatePattern.PURE_DATETIME_PATTERN)
|
||||
@JsonFormat(pattern = DatePattern.PURE_DATETIME_PATTERN)
|
||||
public void setEnd_time(Date endTime){
|
||||
this.endTime = endTime;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user