/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.auth.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 系统菜单查询条件
 *
 * @author lingee
 * @date 2023/11/15
 */
@Data
@NoArgsConstructor
@ApiModel(value = "SysUserQueryDTO", description = "系统用户查询条件")
public class SysMenuQueryDTO implements Serializable {
    private static final long serialVersionUID = -691547145814273825L;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("菜单类型")
    private Integer type;

    @ApiModelProperty("是否api")
    private Boolean ignoreApi;

    @ApiModelProperty("菜单路径")
    private String pathName;

    @ApiModelProperty("菜单类型(多个逗号隔开)")
    private String category;

    @ApiModelProperty("用户id")
    private Integer uid;

    public SysMenuQueryDTO(String name,
                           Integer type,
                           Boolean ignoreApi,
                           String pathName,
                           String category) {
        this.name = name;
        this.type = type;
        this.ignoreApi = ignoreApi;
        this.pathName = pathName;
        this.category = category;
    }
}
