package com.yuchen.saas.park.api.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 肖祥
 * @date 2022/9/28 11:52
 * @Description 消防设施部件新增请求
 */
@Data
public class FireInspectPointStatusResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部件巡查状态")
    private Integer inspectStatus;

    @ApiModelProperty(value = "巡查点id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long pointId;

    @ApiModelProperty(value = "部件隐患数量")
    private Integer taskTroubleNum;

    @ApiModelProperty(value = "最近巡查时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date lastUpdateTime;
}

