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

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;

/**
 * 管理后台 - 产品需求关闭 Request VO
 */
@Schema(description = "管理后台 - 产品需求关闭 Request VO")
@Data
public class ProductRequirementCloseReqVO {

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

    @Schema(description = "所属产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @Schema(description = "关闭原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "需求已完成验收")
    @NotBlank(message = "关闭原因不能为空")
    @Size(max = 255, message = "关闭原因长度不能超过255个字符")
    private String reason;

}
