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

import com.qqchen.deploy.backend.workflow.enums.ApprovalResultEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 审批任务请求
 *
 * @author qqchen
 * @date 2025-10-23
 */
@Data
@Schema(description = "审批任务请求")
public class ApprovalTaskRequest {

    @NotBlank(message = "任务ID不能为空")
    @Schema(description = "Flowable任务ID", required = true)
    private String taskId;

    @NotNull(message = "审批结果不能为空")
    @Schema(description = "审批结果: APPROVED=通过, REJECTED=拒绝", required = true, example = "APPROVED")
    private ApprovalResultEnum result;

    @Schema(description = "审批意见")
    private String comment;
}

