/**
 * @description: 交通管理规定与通知：1-管理规定，2-管理通知
 */
export enum MANAGEMENT_TYPE {
  MANAGEMENT_REGULATION = 1,
  MANAGEMENT_NOTICE = 2,
}

export const MANAGEMENT_TYPE_MAP = {
  [MANAGEMENT_TYPE.MANAGEMENT_REGULATION]: '管理规定',
  [MANAGEMENT_TYPE.MANAGEMENT_NOTICE]: '管理通知',
};

export const getManagementTypeUrl = (type: MANAGEMENT_TYPE) => {
  return type === MANAGEMENT_TYPE.MANAGEMENT_REGULATION ? '/traffic/regulation' : '/traffic/regulation-item';
};

/**
 * @description: 车辆违规类型：1-超速，2-逆行，3-违规停车
 */
export enum VEHICLE_VIOLATION_TYPE {
  OVER_SPEED = 1,
  REVERSE = 2,
  PARKING = 3,
}

export const VEHICLE_VIOLATION_TYPE_MAP = {
  [VEHICLE_VIOLATION_TYPE.OVER_SPEED]: '超速',
  [VEHICLE_VIOLATION_TYPE.REVERSE]: '逆行',
  [VEHICLE_VIOLATION_TYPE.PARKING]: '违规停车',
};

export const getVehicleViolationTypeMap = (type: VEHICLE_VIOLATION_TYPE) => {
  return VEHICLE_VIOLATION_TYPE_MAP[type];
};
