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

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author gyan
 * @desc: TODO
 * @DateTime: 2022/10/14 15:23
 */
@Getter
@Setter
@ToString
public class WorkOrderUpdateReq{
    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String orderId;

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

    /**
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码")
    private String phone;

    /**
     * 执行人id
     */
    @ApiModelProperty(value = "执行人id")
    private String toId;

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



}
