package cn.estsh.i3plus.pojo.form.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description : 表单拦截器
 * @Reference :
 * @Author : yunhao
 * @CreateDate : 2019-03-21 16:25
 * @Modify:
 **/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BF_INTERCEPT")
@Api(value="拦截器主体")
public class BfIntercept extends BaseBean {

    private static final long serialVersionUID = -7880837699871138830L;
    @Column(name="INTERCEPT_NAME")
    @ApiParam(value ="拦截器名称")
    private String interceptName;

    // BlockFormEnumUtil.EXECUTION_TYPE
    @Column(name="EXECUTE_MODE")
    @ApiParam(value ="执行方式")
    private Integer executeMode;

    @Column(name="EXECUTE_CONTENT")
    @ApiParam(value ="执行内容")
    private String executeContent;

    @Column(name="INTERCEPT_DESCRIPTION")
    @ApiParam(value ="拦截器描述")
    private String interceptDescription;

    @Column(name="INTERCEPT_STATUS")
    @ApiParam(value ="拦截器状态")
    private Integer interceptStatus;
}
