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 FireFacilityAddRequest extends TenantEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设施名称")
    @NotBlank(message = "设施名称")
    private String name;
    @ApiModelProperty(value = "园区id")
    @NotNull(message = "园区id不能为空")
    private Long parkId;
    @ApiModelProperty(value = "部件列表")
    @NotEmpty(message = "消防设施部件不能为空")
    @Size(min = 1,max = 1000,message = "部件数量1到1000")
    private List<FireFacilityPartAddRequest> facilityPartAddRequestList;

}
