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 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_config")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxFlowConfig 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="流程类型1合同审批2账单审批3终止合同4有价卷上架",name="type")
    private Integer type;

    @io.swagger.annotations.ApiModelProperty(value="排序",name="sort")
    private Integer sort;

    @io.swagger.annotations.ApiModelProperty(value="模板id",name="modelId")
    private Long modelId;

    @io.swagger.annotations.ApiModelProperty(value="父类ID",name="parentId")
    private Long parentId;

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

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

    @TableField(exist = false)
    private WxFlowModel wxFlowModel;

    @TableField(exist = false)
    private List<WxFlowConfig> childs;

}
