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

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

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description 新增工单入参
 * Author yule
 * Date 2022/10/14 11:32
 */
@Data
public class WorkOrderAddReq implements Serializable {

    @ApiModelProperty(value = "电站id")
    @NotNull(message = "请选择电站")
    Integer stationId;

    @ApiModelProperty(value = "工单类型")
    @NotNull(message = "请选择工单类型")
    Integer workOrderType;

    @ApiModelProperty(value = "工单描述")
    @NotNull(message = "请填写工单描述")
    @Length(min = 1,max = 500,message = "工单描述不能超过500个字符")
    String desc;

}
