export enum InfoType {
  DISASTER_WARNING = 1, // 灾害预警-预警信息
  NOTICE_AND_RULE = 2, // 灾害预警-管理规定与通知-详情
  DISASTER_PRECAUTION = 3, // 预防检查-任务执行
  DISASTER_LOSS_REPORT = 4, // 灾害处置-损失上报-上报任务
  DISASTER_RECTIFICATION = 5, // 灾害处置-处置整改
}

export const infoTypeMapUrl: Record<InfoType, string> = {
  [InfoType.DISASTER_WARNING]: '/disaster-prevention/disaster-warning/warning-info',
  [InfoType.NOTICE_AND_RULE]: '/disaster-prevention/disaster-warning/defense-notice-item',
  [InfoType.DISASTER_PRECAUTION]: '/disaster-prevention/disaster-precaution/task-execution',
  [InfoType.DISASTER_LOSS_REPORT]: '/disaster-prevention/disaster-control/loss-report',
  [InfoType.DISASTER_RECTIFICATION]: '/disaster-prevention/disaster-control/disposal-rectification',
};

export function getUrlByInfoType(infoType: number) {
  return infoTypeMapUrl[infoType];
}

export enum UnReadNoticeInfoStatus {
  READ = 1, // 已读、已处理
  UNREAD = 2, // 未读、未处理
  IGNORE = 3, // 忽略
}
