2026-06-02 17:24:22 +08:00

37 lines
1.4 KiB
JavaScript

import { MENU_CODES, PERMISSIONS } from "@/app/permissions";
export const operationsRoutes = [
{
label: "金币流水",
loader: () => import("./pages/CoinLedgerPage.jsx").then((module) => module.CoinLedgerPage),
menuCode: MENU_CODES.operationCoinLedger,
pageKey: "operation-coin-ledger",
path: "/operations/coin-ledger",
permission: PERMISSIONS.coinLedgerView,
},
{
label: "金币增减",
loader: () => import("./pages/CoinAdjustmentPage.jsx").then((module) => module.CoinAdjustmentPage),
menuCode: MENU_CODES.operationCoinAdjustment,
pageKey: "operation-coin-adjustment",
path: "/operations/coin-adjustments",
permission: PERMISSIONS.coinAdjustmentView,
},
{
label: "举报列表",
loader: () => import("./pages/ReportListPage.jsx").then((module) => module.ReportListPage),
menuCode: MENU_CODES.operationReports,
pageKey: "operation-reports",
path: "/operations/reports",
permission: PERMISSIONS.reportView,
},
{
label: "礼物钻石",
loader: () => import("./pages/GiftDiamondRatioPage.jsx").then((module) => module.GiftDiamondRatioPage),
menuCode: MENU_CODES.operationGiftDiamond,
pageKey: "operation-gift-diamond",
path: "/operations/gift-diamonds",
permission: PERMISSIONS.giftDiamondView,
},
];