package com.njcn.rdms.module.project.controller.admin.project.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 ProjectRequirementCloseReqVO {

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

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

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

}
