/**
 * @description: 灾害预警记录(timespan: 1-本周，2-本月，3-季度，4-年度)
 */

export enum DisasterTimeSpan {
  ONE_WEEK = 1,
  ONE_MONTH = 2,
  ONE_QUARTER = 3,
  ONE_YEAR = 4,
}

export const disasterTimeSpanTextMap: Record<DisasterTimeSpan, string> = {
  [DisasterTimeSpan.ONE_WEEK]: '本周',
  [DisasterTimeSpan.ONE_MONTH]: '本月',
  [DisasterTimeSpan.ONE_QUARTER]: '季度',
  [DisasterTimeSpan.ONE_YEAR]: '年度',
};

export const disasterTimeSpanValueMap: Record<DisasterTimeSpan, number> = {
  [DisasterTimeSpan.ONE_WEEK]: 1,
  [DisasterTimeSpan.ONE_MONTH]: 2,
  [DisasterTimeSpan.ONE_QUARTER]: 3,
  [DisasterTimeSpan.ONE_YEAR]: 4,
};
