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 java.io.Serializable;

/**
 * @author fancl
 * @desc: 工单分配请求实体
 * @date 2022/10/14
 */
@Getter
@Setter
@ToString
public class WorkOrderApplyReqVO implements Serializable {

    @ApiModelProperty(value = "工单号,必填")
    String orderId;

    @ApiModelProperty(value = "任务id,工作流需要的元素,必填")
    String taskId;

    @ApiModelProperty(value = "执行人(维修人)id,分配工单的接口必填,其他接口不用填")
    String toId;

    @ApiModelProperty(value = "执行人(维修人)手机号,分配工单时必填,其他接口不用填")
    String phone;

    @ApiModelProperty(value = "描述,选填")
    @Length(max = 500,message = "工单描述不能超过500个字符")
    String distributionDesc;

}
