package com.njzscloud.dispose.sys.menu.pojo.result;

import com.njzscloud.common.security.contant.ClientCode;
import com.njzscloud.dispose.sys.menu.contant.MenuCategory;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 添加菜单
 */
@Getter
@Setter
@EqualsAndHashCode
@Accessors(chain = true)
public class MenuDetailResult {

    /**
     * 主键 Id
     */
    private Long id;
    private String sn;
    private ClientCode clientCode;

    /**
     * 上级 Id; 层级为 1 的节点值为 0
     */
    private Long pid;
    private Integer tier;

    /**
     * 菜单名称
     */
    private String title;

    /**
     * 图标
     */
    private String icon;

    /**
     * 类型; 字典代码：menu_category
     */
    private MenuCategory menuCategory;

    private List<String> breadcrumb;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 路由名称
     */
    private String routeName;
}
