import { ResultEnum } from "@/enums/httpEnum";

export enum PageEnum {
  // 错误
  ERROR_PAGE_NAME_403 = "ErrorPage403",
  ERROR_PAGE_NAME_404 = "ErrorPage404",
  BASE_LOGIN = "/login",
  REDIRECT = "/redirect",
  REDIRECT_NAME = "Redirect",
  // ERROR_PAGE_NAME_500 = "ErrorPage500",
}

export const ErrorPageNameMap = new Map([
  [ResultEnum.NOT_FOUND, PageEnum.ERROR_PAGE_NAME_404],
  [ResultEnum.SERVER_FORBIDDEN, PageEnum.ERROR_PAGE_NAME_403],
  // [ResultEnum.SERVER_ERROR, PageEnum.ERROR_PAGE_NAME_500],
]);
