package com.ho.flow.vo.req.event;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @Description 告警转工单对象
 * Author yule
 * Date 2023/4/23 11:21
 */
@Data
public class EventWorkOrder {

    @ApiModelProperty(value = "告警id集合")
    @NotEmpty(message = "请选择告警数据")
    List<Long> eventIds;

    @ApiModelProperty(value = "候选人列表")
    @NotEmpty(message = "请指定执行人")
    List<String> candidateUserList;

    /**
     * 计划标题
     */
    @ApiModelProperty(value = "计划标题")
    @Length(max = 50, message = "计划标题不能超过50个字符")
    private String planTitle;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @Length(max = 50, message = "标题不能超过50个字符")
    private String title;

    /**
     * 计划处理时间
     */
    //@DateTimeFormat(pattern = CommonConstant.DATE)
    @ApiModelProperty(value = "计划处理时间")
    private Date plannedTime;

    /**
     * 优先级 ,可以从字典定义取值
     */
    @ApiModelProperty(value = "优先级")
    private Integer priority;


    /**
     * 描述
     */
    @ApiModelProperty(value = "工单描述")
    @Length(max = 100, message = "工单描述不能超过100个字符")
    private String desc;

    @ApiModelProperty(value = "创建人id",hidden = true)
    String userId;

    @ApiModelProperty(value = "集团id",hidden = true)
    Integer groupId;
}
