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

    @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 = "pass_review")
    @NotBlank(message = "动作编码不能为空")
    @Size(max = 32, message = "动作编码长度不能超过 32 个字符")
    private String actionCode;

    @Schema(description = "状态变更原因", example = "需求全部结束")
    private String reason;

}
