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

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

@Schema(description = "管理后台 - 项目删除 Request VO")
@Data
public class ProjectDeleteReqVO {

    @Schema(description = "项目编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "项目编号不能为空")
    private Long id;

    @Schema(description = "确认输入的项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "客户交付项目")
    @NotBlank(message = "确认项目名称不能为空")
    @Size(max = 200, message = "确认项目名称长度不能超过200个字符")
    private String projectName;

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

}
