package com.ho.flow.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ho.common.tools.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName work_order_circulation
 */
@Data
public class WorkOrderCirculation implements Serializable {
    /**
     * 
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String orderId;

    /**
     * 发起人
     */
    @ApiModelProperty(value = "发起人id")
    private String fromId;

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

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern= CommonConstant.DATE)
    private Date createTime;

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

    /**
     * 当前动作
     */
    @ApiModelProperty(value = "当前动作")
    private Integer workOrderAction;

}