package cn.axzo.workflow.core.repository.entity;

import cn.axzo.framework.data.mybatisplus.model.BaseEntity;
import cn.axzo.workflow.common.model.dto.SignFileDTO;
import cn.axzo.workflow.core.conf.handler.ListSignFileDTOHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 审批日志
 *
 * @author wangli
 * @since 2024-08-30 15:29
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ext_ax_process_sign", autoResultMap = true)
@Data
@ToString(callSuper = true)
public class ExtAxProcessSign extends BaseEntity<ExtAxProcessSign> {

    private static final long serialVersionUID = 461756492937079852L;

    /**
     * 流程实例 ID
     */
    private String processInstanceId;
    /**
     * 签署配置个签，还是群签
     */
    private String signType;
    /**
     * 签署业务待办模板 Code
     */
    private String pendingMessageId;
    /**
     * 流程创建时，基于模型关联的模板
     */
    @TableField(typeHandler = ListSignFileDTOHandler.class)
    private List<SignFileDTO> docTemplate;
    /**
     * 文件归档
     */
    @TableField(typeHandler = ListSignFileDTOHandler.class)
    private List<SignFileDTO> fileArchive;
}
