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

export const paymentRoutes = [
    {
        label: "账单列表",
        loader: () => import("./pages/PaymentBillListPage.jsx").then((module) => module.PaymentBillListPage),
        menuCode: MENU_CODES.paymentBillList,
        pageKey: "payment-bill-list",
        path: "/payment/bills",
        permission: PERMISSIONS.paymentBillView,
    },
    {
        label: "第三方支付",
        loader: () => import("./pages/ThirdPartyPaymentPage.jsx").then((module) => module.ThirdPartyPaymentPage),
        menuCode: MENU_CODES.paymentThirdParty,
        pageKey: "payment-third-party",
        path: "/payment/third-party",
        permission: PERMISSIONS.paymentThirdPartyView,
    },
    {
        label: "三方临时支付链接",
        loader: () =>
            import("./pages/TemporaryPaymentLinksPage.jsx").then((module) => module.TemporaryPaymentLinksPage),
        menuCode: MENU_CODES.paymentTemporaryLinks,
        pageKey: "payment-temporary-links",
        path: "/payment/temporary-links",
        permission: PERMISSIONS.paymentTemporaryLinkView,
    },
    {
        label: "支付内购商品",
        loader: () =>
            import("./pages/RechargeProductConfigPage.jsx").then((module) => module.RechargeProductConfigPage),
        menuCode: MENU_CODES.paymentRechargeProducts,
        pageKey: "payment-recharge-products",
        path: "/payment/recharge-products",
        permission: PERMISSIONS.paymentProductView,
    },
];
