package org.springblade.flow.engine.model.flowengine;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.flow.engine.enums.NotifyType;

import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 *
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2021/3/15 9:16
 */
@Data
public class FlowEngineCrForm {

    private String enCode;
    @NotBlank(message = "流程名称不能为空")
    private String fullName;

    private int type;

    private String category;

    private String formData;

    private int formType;
    private Integer visibleType;
    private String icon;
    private String iconBackground;
    private String version;
    @NotBlank(message = "流程引擎不能为空")
    private String flowTemplateJson;
    private String description;
    private Integer enabledMark;
    @ApiModelProperty(value = "排序")
    private Long sortCode;
    @ApiModelProperty(value = "关联表")
    private String tables;
    private String dbLinkId;
    @ApiModelProperty(value = "app表单路径")
    private String appFormUrl;
    @ApiModelProperty(value = "pc表单路径")
    private String formUrl;

    @NotNull(message = "流程分类不能为空")
    private Long cateId;

    @NotNull(message = "是否推送不能为空")
    private Integer messageOn;

    @ApiModelProperty(value = "消息方式：0邮件 1企微 2钉钉 3飞书")
    private NotifyType notifyType;


}
