package com.qqchen.deploy.backend.workflow.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 审批任务响应DTO
 *
 * @author qqchen
 * @date 2025-10-23
 */
@Data
@Schema(description = "审批任务信息")
public class ApprovalTaskDTO {

    @Schema(description = "任务ID")
    private String taskId;

    @Schema(description = "任务名称")
    private String taskName;

    @Schema(description = "任务描述")
    private String taskDescription;

    @Schema(description = "流程实例ID")
    private String processInstanceId;

    @Schema(description = "流程定义ID")
    private String processDefinitionId;

    @Schema(description = "审批人")
    private String assignee;

    @Schema(description = "候选组")
    private String candidateGroups;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "到期时间")
    private LocalDateTime dueDate;

    @Schema(description = "审批标题")
    private String approvalTitle;

    @Schema(description = "审批内容")
    private String approvalContent;

    @Schema(description = "审批模式")
    private String approvalMode;

    @Schema(description = "是否允许转交")
    private Boolean allowDelegate;

    @Schema(description = "是否允许加签")
    private Boolean allowAddSign;

    @Schema(description = "是否必须填写意见")
    private Boolean requireComment;
}

