import { MENU_CODES, PERMISSIONS } from "@/app/permissions";

export const logsRoutes = [
  {
    label: "登录日志",
    loader: () => import("./pages/LogsPage.jsx").then((module) => module.LogsPage),
    menuCode: MENU_CODES.logsLogin,
    pageKey: "logs-login",
    path: "/logs/login",
    permission: PERMISSIONS.logView,
    props: { type: "login" }
  },
  {
    label: "操作日志",
    loader: () => import("./pages/LogsPage.jsx").then((module) => module.LogsPage),
    menuCode: MENU_CODES.logsOperations,
    pageKey: "logs-operations",
    path: "/logs/operations",
    permission: PERMISSIONS.logView,
    props: { type: "operations" }
  }
];
