package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.BaseEntity;
import com.iformall.domain.vo.UserTaskVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author luozukai
 * @date 2019/6/6 10:50
 */
@TableName(value = "wx_flow_model")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxFlowModel extends BaseEntity {

    protected Long id;

    @io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
    private String tenantId;

    @io.swagger.annotations.ApiModelProperty(value="模板名称",name="name")
    private String name;

    @io.swagger.annotations.ApiModelProperty(value="流程",name="flow")
    private String flow;

    @io.swagger.annotations.ApiModelProperty(value="创建用户",name="createUser")
    private Long createUser;

    @io.swagger.annotations.ApiModelProperty(value="创建日期",name="createDate")
    private Date createDate;

    @io.swagger.annotations.ApiModelProperty(value="更新日期",name="updateDate")
    private Date updateDate;

    @io.swagger.annotations.ApiModelProperty(value="流程id",name="flowId")
    private String flowId;

    @io.swagger.annotations.ApiModelProperty(value="流程类型4商铺签约5多径签约6商铺终止7多径终止8账单变更9有价卷上架",name="flowType")
    @TableField(exist = false)
    private Integer flowType;

    //流程节点列表
    @TableField(exist = false)
    private List<UserTaskVo> lists;

}
