package com.gxwebsoft.common.system.param;

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

/**
 * 插件扩展查询参数
 *
 * @author 科技小王子
 * @since 2023-05-18 11:57:37
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "PlugParam对象", description = "插件扩展查询参数")
public class PlugParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

    @Schema(description = "类型, 0菜单, 1按钮")
    @QueryField(type = QueryType.EQ)
    private Integer menuType;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "权限标识")
    private String authority;

    @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 = "菜单侧栏选中的path")
    private String active;

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

    @Schema(description = "关联应用ID")
    @QueryField(type = QueryType.EQ)
    private Integer appId;

    @Schema(description = "状态")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

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

    @Schema(description = "商户编码")
    private String merchantCode;

}
