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;

/**
 * @ClassName FireInspectPlanUpdateRequest
 * @Description 消防巡查计划更新
 * @Author 肖祥
 * @Date 2022/10/19 14:05
 * @Version 1.0。0
 **/
@Data
public class FireInspectPlanUpdateRequest 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 = "所属区域")
    @NotNull(message = "所属区域不能为空")
    private Long areaId;

    @ApiModelProperty(value = "巡查人员")
    @NotNull(message = "巡查人员不能为空")
    private Long inspectUser;

    @ApiModelProperty(value = "开始日期")
    @NotBlank(message = "开始日期不能为空")
    private String planStartDate;

    @ApiModelProperty(value = "结束日期")
    @NotBlank(message = "结束日期不能为空")
    private String planEndDate;

    @ApiModelProperty(value = "巡查周期")
    @NotNull(message = "巡查周期不能为空")
    private Integer inspectCycle;

    @ApiModelProperty(value = "计划间隔")
    private Integer planInterval;

    @ApiModelProperty(value = "间隔开始时间")
    private String startTime;

    @ApiModelProperty(value = "间隔开始时间")
    private String endTime;

    @ApiModelProperty(value = "消防巡查点列表")
    @NotEmpty(message = "消防巡查点列表不能为空")
    @Size(min = 1,max = 1000,message = "消防巡查点数量1到1000")
    private List<Long> inspectPointIds;



}
