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

    @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 = "产品编号不能为空")
    private Long productId;

    @Schema(description = "动作编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "dispatch")
    @NotBlank(message = "动作编码不能为空")
    @Size(max = 32, message = "动作编码长度不能超过32个字符")
    private String actionCode;

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

    @Schema(description = "关联项目编号（dispatch动作时可选）", example = "1024")
    private Long implementProjectId;
}
