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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName FireInspectAddRequest
 * @Description 消防巡查点新增请求类
 * @Author 肖祥
 * @Date 2022/10/19 14:05
 * @Version 1.0。0
 **/
@Data
public class FireInspectResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "巡查点id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "巡查点名称")
    private String name;

    @ApiModelProperty(value = "巡查卡卡号")
    private String inspectCard;

    @ApiModelProperty(value = "所属区域")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long areaId;

    @ApiModelProperty(value = "详细位置")
    private String detailAddress;

    @ApiModelProperty(value = "消防设施列表")
    @Size(min = 1,max = 1000,message = "消防设施数量1到1000")
    private List<FireFacilityPartResponse> fireFacilityResponseList;



}
