package com.ho.flow.vo.process;

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

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

/**
 * 
 * @TableName process_template
 */
@Data
public class ProcessTemplate implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 序列号
     */
    @ApiModelProperty(value = "序列号")
    private Long serialNum;

    /**
     * 流程名称
     */
    @ApiModelProperty(value = "流程名称")
    @Length(max = 50,message = "流程名称不能超过50个字符")
    private String name;

    /**
     * 流程分类
     */
    @ApiModelProperty(value = "流程分类")
    private Integer type;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Length(max = 255,message = "备注不能超过255个字符")
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 状态(0:禁用 1:启用)
     */
    @ApiModelProperty(value = "0:禁用 1:启用")
    private Integer status;

    /**
     * 流程图
     */
    @ApiModelProperty(value = "流程图")
    private String processBpmn;


    @ApiModelProperty("流程模板id集合")
    private List<Integer> ids;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "分页数量")
    private Integer pageSize=10;
}