package cn.iocoder.yudao.module.pms.controller.admin.inspect.plan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 巡检计划新增/修改 Request VO")
@Data
public class IotInspectPlanSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6280")
    private Long id;

    @Schema(description = "巡检计划标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "巡检计划标题不能为空")
    private String planTitle;

    @Schema(description = "巡检计划编号", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "巡检计划编号不能为空")
    private String planCode;

    @Schema(description = "周期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "周期不能为空")
    private BigDecimal planCycle;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "单位不能为空")
    private String planUnit;

    @Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "负责人不能为空")
    private String charge;

    @Schema(description = "设备", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备不能为空")
    private String deviceIds;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "部门id", example = "21365")
    private Long deptId;

    @Schema(description = "状态")
    private Integer status;
    @Schema(description = "负责人")
    private List<String> charges;

    @Schema(description = "开始执行时间")
    private LocalDateTime beginCreateTime;
}
