package com.microservices.pms.product.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 产品需求对象 pms_product_requirement
 *
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("用户需求搜索对象")
public class ProductReqSpecsSearchVo {
    /**
     * 标题
     */
    @ApiModelProperty(value = "模糊搜索标题")
    private String title;

    /**
     * 关联产品模块标识
     */
    @ApiModelProperty(value = "关联产品标识", required = true)
    @NotNull
    private String pmsProductIdentifier;

    /**
     * 关联产品模块ID
     */
    @ApiModelProperty(value = "关联产品模块ID（传0查询不属于任何模块的需求）")
    private Long pmsProductModuleId;

    @ApiModelProperty(value = "产品需求状态（全部状态请传空）")
    private String status;

    /**
     * 关联项目ID
     */
    @ApiModelProperty(value = "关联模块ID", hidden = true)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Long> childrenModuleIdList;
}
