import { ResourceTypeEnum, StatusEnum } from 'nsn-enum';
import { NEntity } from '../core';

/** 系统-资源 */
export interface Resource extends NEntity {

  /** 父级 */
  parentId: string;

  /** 资源名称 */
  name: string;

  /** 资源类型 */
  type: ResourceTypeEnum;

  /** 资源路径 */
  uri: string;

  /** 资源权重 */
  weight: number;

  /** 资源名称(英文) */
  nameEn: string;

  /** 外部链接地址 */
  externalLink: boolean;

  /** 图标 */
  icon: string;

  /** 状态 */
  status: StatusEnum;
}