package com.bonus.material.approval.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 审批节点配置实体
 *
 * @author bonus
 * @date 2024-11-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("审批节点配置")
public class ApprovalNode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("流程ID")
    private Long processId;

    @ApiModelProperty("节点名称")
    private String nodeName;

    @ApiModelProperty("节点顺序")
    private Integer nodeOrder;

    @ApiModelProperty("审批人类型（1用户 2角色）")
    private String approverType;

    @ApiModelProperty("审批人ID列表（逗号分隔）")
    private String approverIds;

    @ApiModelProperty("审批模式（1或签 2会签）")
    private String approveMode;

    @ApiModelProperty("自动通过（0否 1是）")
    private String autoPass;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String name;
}

