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 = "CmsNavigationParam对象", description = "网站导航记录表查询参数")
public class CmsNavigationParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "上级id, 0是顶级")
    @QueryField(type = QueryType.EQ)
    private Integer parentId;

    @Schema(description = "菜单名称")
    private String title;

    @Schema(description = "模型")
    private String model;

    @Schema(description = "标识")
    private String code;

    @Schema(description = "菜单路由地址")
    private String path;

    @Schema(description = "菜单组件地址, 目录可为空")
    private String component;

    @Schema(description = "打开位置")
    private String target;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "图标颜色")
    private String color;

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

    @Schema(description = "可见类型 0所有人 1登录可见 2密码可见")
    @QueryField(type = QueryType.EQ)
    private Integer permission;

    @Schema(description = "访问密码")
    @QueryField(type = QueryType.EQ)
    private String password;

    @Schema(description = "访问密码")
    @QueryField(type = QueryType.EQ)
    private String password2;

    @Schema(description = "位置 0不限 1顶部 2底部")
    @QueryField(type = QueryType.EQ)
    private Integer position;

    @Schema(description = "仅在顶部显示")
    @QueryField(type = QueryType.EQ)
    private Integer top;

    @Schema(description = "仅在底部显示")
    @QueryField(type = QueryType.EQ)
    private Integer bottom;

    @Schema(description = "菜单侧栏选中的path")
    private String active;

    @Schema(description = "其它路由元信息")
    private String meta;

    @Schema(description = "css样式")
    private String style;

    @Schema(description = "父级栏目路由")
    private String parentPath;

    @Schema(description = "父级栏目名称")
    private String parentName;

    @Schema(description = "模型名称")
    private String modelName;

    @Schema(description = "类型（已废弃）")
    @QueryField(type = QueryType.EQ)
    private Integer type;

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

    @Schema(description = "是否微信小程序菜单")
    @QueryField(type = QueryType.EQ)
    private Boolean isMpWeixin;

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

    @Schema(description = "设为首页")
    @QueryField(type = QueryType.EQ)
    private Integer home;

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

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

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

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

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

    @Schema(description = "是否开启布局")
    @QueryField(type = QueryType.EQ)
    private Boolean showLayout;

    @Schema(description = "是否查询单页内容")
    @QueryField(type = QueryType.EQ)
    private Boolean queryContent;

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

}
