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

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

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

    @Schema(description = "确认输入的任务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "接口契约对齐")
    @NotBlank(message = "确认任务名称不能为空")
    @Size(max = 200, message = "确认任务名称长度不能超过200个字符")
    private String taskName;

    @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;

}
