import { YES_OR_NO } from ".";

export enum ASS_INDEX_TYPE {
  /**
   * 固定指标
   */
  FIXED = "fixed",
  /**
   * 运营指标
   */
  OPERATION = "operation",
}

export type AssIndexTreeItemType = {
  id: number;
  name: string;
  parentId: number;
  level: number;
  children: AssIndexTreeItemType[];
  disabled?: boolean;
};

export interface IAssIndexDetail {
  id: number;
  parentId: number;
  name: string;
  /** 指标编号 */
  num: string;
  remark: string;
  /** 打分点 */
  isPoint: YES_OR_NO;
  jsonPoint: string;
  /** 告警阈值 */
  isWarn: YES_OR_NO;
  jsonWarn: string;
  materials: {
    name: string;
    id: number;
    fileName: string;
    isUpload: YES_OR_NO;
  }[];
  sort: number;
  updateTime: string;
  creatorName: string;
}
