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

    @Schema(description = "模块ID（编辑时传入）", example = "1024")
    private Long id;

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

    @Schema(description = "父模块ID（0表示顶级）", example = "0")
    private Long parentId;

    @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "核心功能")
    @NotBlank(message = "模块名称不能为空")
    @Size(max = 100, message = "模块名称长度不能超过100个字符")
    private String moduleName;

    @Schema(description = "模块说明", example = "产品核心功能模块")
    private String remark;

    @Schema(description = "图标", example = "icon-function")
    private String icon;

    @Schema(description = "排序值", example = "0")
    private Integer sort;

}
