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

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 肖祥
 * @date 2022/9/28 11:52
 * @Description 消防巡查点更新请求
 */
@Data
public class FireInspectPointUpdateRequest extends TenantEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "巡查点id")
    @NotNull(message = "巡查点id不能为空")
    private Long id;

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

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

    @ApiModelProperty(value = "所属区域")
    @NotNull(message = "所属区域不能为空")
    private Long areaId;

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

    @ApiModelProperty(value = "消防设施列表")
    @NotEmpty(message = "消防设施不能为空")
    @Size(min = 1,max = 1000,message = "消防设施数量1到1000")
    private List<FireInspectFacilityAddRequest> facilityAddRequestList;

}
