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

export const appUserRoutes = [
    {
        label: "用户列表",
        loader: () => import("./pages/AppUserListPage.jsx").then((module) => module.AppUserListPage),
        menuCode: MENU_CODES.appUserList,
        pageKey: "app-user-list",
        path: "/app/users",
        permission: PERMISSIONS.appUserView,
    },
    {
        label: "用户详情",
        loader: () => import("./pages/AppUserDetailPage.jsx").then((module) => module.AppUserDetailPage),
        menuCode: MENU_CODES.appUserDetail,
        pageKey: "app-user-detail",
        path: "/app/users/:userId",
        permission: PERMISSIONS.appUserView,
    },
    {
        label: "登录日志",
        loader: () => import("./pages/AppUserLoginLogsPage.jsx").then((module) => module.AppUserLoginLogsPage),
        menuCode: MENU_CODES.appUserLoginLogs,
        pageKey: "app-user-login-logs",
        path: "/app/users/login-logs",
        permission: PERMISSIONS.appUserView,
    },
    {
        label: "封禁列表",
        loader: () => import("./pages/AppUserBanListPage.jsx").then((module) => module.AppUserBanListPage),
        menuCode: MENU_CODES.appUserBans,
        pageKey: "app-user-bans",
        path: "/app/users/bans",
        permission: PERMISSIONS.appUserView,
    },
    {
        label: "靓号管理",
        loader: () => import("./pages/AppUserPrettyIdsPage.jsx").then((module) => module.AppUserPrettyIdsPage),
        menuCode: MENU_CODES.appUserPrettyIds,
        pageKey: "app-user-pretty-ids",
        path: "/app/users/pretty-ids",
        permission: PERMISSIONS.prettyIdView,
    },
];
