package com.xunmei.core.resumption.dto.protection;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xunmei.common.core.web.domain.PageDto;
import com.xunmei.core.resumption.domain.ProtectionLog;
import com.xunmei.core.resumption.vo.protection.ProtectionLogPageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Builder
@ApiModel(description = "防区历史记录查询")
public class ProtectionLogPageDto extends PageDto<ProtectionLogPageVo> {

    @ApiModelProperty("防区id")
    @NotNull(message = "缺失防区id")
    private Long protectionId;

    @ApiModelProperty("上报时间")
    private Date[] updateTime;

//    @JsonIgnore
    private Date startTime;

    @JsonIgnore
    private Date endTime;

}
