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

export const operationsRoutes = [
    {
        label: "送礼记录",
        loader: () => import("./pages/GiftRecordPage.jsx").then((module) => module.GiftRecordPage),
        menuCode: MENU_CODES.operationGiftRecords,
        pageKey: "operation-gift-records",
        path: "/operations/gift-records",
        permission: PERMISSIONS.giftRecordView,
    },
    {
        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/CoinSellerLedgerPage.jsx").then((module) => module.CoinSellerLedgerPage),
        menuCode: MENU_CODES.operationCoinSellerLedger,
        pageKey: "operation-coin-seller-ledger",
        path: "/operations/coin-seller-ledger",
        permission: PERMISSIONS.coinSellerLedgerView,
    },
    {
        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/WheelPage.jsx").then((module) => module.WheelPage),
        menuCode: MENU_CODES.wheel,
        pageKey: "wheel",
        path: "/activities/wheel",
        permission: PERMISSIONS.wheelView,
    },
    {
        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,
    },
];
