package com.gxwebsoft.pwl.param;

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 材料库资料库表查询参数
 *
 * @author 科技小王子
 * @since 2025-09-28 09:38:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "PwlProjectLibraryParam对象", description = "材料库资料库表查询参数")
public class PwlProjectLibraryParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "资料库名称")
    private String name;

    @Schema(description = "资料库类型: biz-项目案例库, pub-公共知识库")
    private String type;

    @Schema(description = "关联知识库ID")
    private String kbId;

    @Schema(description = "资料库库IDs")
    private String libraryIds; //英文逗号分割

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "资料库图标")
    private String image;

    @Schema(description = "资料库描述")
    private String content;

    @Schema(description = "关联文件")
    private String files;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "是否推荐")
    @QueryField(type = QueryType.EQ)
    private Integer recommend;

    @Schema(description = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @Schema(description = "创建用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

}
