package com.njcn.rdms.module.project.controller.admin.project.execution.vo.execution;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 删除执行 Request VO。与项目侧 ProjectDeleteReqVO 同款三重确认（confirmText / executionName / reason）。
 * 详见 docs/项目/2026-05-11-执行按钮可见度对齐设计.md §6.2.1。
 */
@Schema(description = "管理后台 - 执行删除 Request VO")
@Data
public class ProjectExecutionDeleteReqVO {

    @Schema(description = "确认输入的执行名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "后端接口联调")
    @NotBlank(message = "确认执行名称不能为空")
    @Size(max = 200, message = "确认执行名称长度不能超过200个字符")
    private String executionName;

    @Schema(description = "删除确认口令，当前固定输入 DELETE", requiredMode = Schema.RequiredMode.REQUIRED, example = "DELETE")
    @NotBlank(message = "删除确认口令不能为空")
    @Size(max = 32, message = "删除确认口令长度不能超过32个字符")
    private String confirmText;

    @Schema(description = "删除原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "执行录入错误")
    @NotBlank(message = "删除原因不能为空")
    @Size(max = 500, message = "删除原因长度不能超过500个字符")
    private String reason;

}
