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 com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文章分类表查询参数
 *
 * @author 科技小王子
 * @since 2024-09-10 20:47:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsArticleCategoryParam对象", description = "文章分类表查询参数")
public class CmsArticleCategoryParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "文章分类ID")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @Schema(description = "分类标识")
    private String categoryCode;

    @Schema(description = "分类名称")
    private String title;

    @Schema(description = "类型 0列表 1单页 2外链")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "分类图片")
    private String image;

    @Schema(description = "上级分类ID")
    @QueryField(type = QueryType.EQ)
    private Integer parentId;

    @Schema(description = "路由/链接地址")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "绑定的页面")
    @QueryField(type = QueryType.EQ)
    private Integer pageId;

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

    @Schema(description = "文章数量")
    @QueryField(type = QueryType.EQ)
    private Integer count;

    @Schema(description = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

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

    @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)")
    @QueryField(type = QueryType.EQ)
    private Integer hide;

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

    @Schema(description = "是否显示在首页")
    @QueryField(type = QueryType.EQ)
    private Integer showIndex;

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

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

}
