package com.gxwebsoft.cms.param;

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

/**
 * 客户案例查询参数
 *
 * @author WorkBuddy
 * @since 2026-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsCaseParam对象", description = "客户案例查询参数")
public class CmsCaseParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "案例名称")
    @QueryField(type = QueryType.LIKE)
    private String caseName;

    @Schema(description = "所属行业")
    @QueryField(type = QueryType.EQ)
    private String industry;

    @Schema(description = "状态: 1已发布 0已下线")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "案例分类ID（关联 cms_navigation.navigation_id，model=case）")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @Schema(description = "案例分类ID集合（逗号分隔），用于聚合父栏目下所有子栏目的案例；优先级高于 categoryId")
    @QueryField(value = "category_id", type = QueryType.IN_STR)
    private String categoryIds;
}
