package com.qqchen.deploy.backend.workflow.dto.definition.node.panelVariables;

import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 审批节点配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApprovalNodePanelVariables extends BaseNodePanelVariables {

    @SchemaProperty(
        title = "审批人",
        description = "审批人用户ID",
        required = true
    )
    private String assignee;

    @SchemaProperty(
        title = "审批组",
        description = "审批组ID"
    )
    private String candidateGroup;

    @SchemaProperty(
        title = "超时时间(小时)",
        description = "审批超时时间，单位小时",
        required = true,
        defaultValue = "24"
    )
    private Integer timeoutHours;

    @SchemaProperty(
        title = "是否需要会签",
        description = "是否需要所有审批人同意",
        defaultValue = "false"
    )
    private Boolean needAllApprove;
} 