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

    @Schema(description = "模块 ID", example = "1024")
    private Long id;

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

    @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;

}
