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

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 ProductDeleteReqVO {

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

    @Schema(description = "确认输入的产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "RDMS产品平台")
    @NotBlank(message = "确认产品名称不能为空")
    @Size(max = 128, message = "确认产品名称长度不能超过128个字符")
    private String productName;

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

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

}
