package cn.iocoder.yudao.module.mes.controller.admin.taskmanagement.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备类型新增/修改 Request VO")
@Data
public class TaskManagementSaveReqVO {

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

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "类型(1-点检 2-保养)", example = "2")
    private Integer taskType;

    @Schema(description = "设备列表")
    @NotEmpty(message = "名称不能为空")
    private String deviceList;

    @Schema(description = "项目表单")
    @NotNull
    private Long projectForm;

    @Schema(description = "起止开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String startDate;

    @Schema(description = "起止结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String endDate;

    @Schema(description = "cron表达式")
    private String cronExpression;

    @Schema(description = "可操作人")
    private String operableUsers;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean enabled;

}