package com.njcn.rdms.module.project.controller.admin.project.vo.requirement;

import com.njcn.rdms.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 管理后台 - 项目需求分页 Request VO
 */
@Schema(description = "管理后台 - 项目需求分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class ProjectRequirementPageReqVO extends PageParam {

    @Schema(description = "所属项目 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long projectId;

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

    @Schema(description = "所属模块 ID 列表，包含子模块，用于 IN 查询", example = "[1024, 1025]")
    private List<Long> moduleIds;

    @Schema(description = "父需求 ID，查询子需求时使用", example = "1024")
    private Long parentId;

    @Schema(description = "标题关键字", example = "模块")
    private String title;

    @Schema(description = "需求分类字典值", example = "function")
    private String category;

    @Schema(description = "优先级", example = "1")
    private Integer priority;

    @Schema(description = "状态编码", example = "implementing")
    private String statusCode;

    @Schema(description = "当前处理人用户 ID", example = "1024")
    private Long currentHandlerUserId;

    @Schema(description = "来源类型", example = "manual")
    private String sourceType;

    @Schema(description = "来源业务编号", example = "CRM-20260615-001")
    private String sourceBizCode;

}
