Files
lotteryAdmin/src/api/index.ts
kang d90ca3c66b refactor(api): 简化 API 路径定义,移除 API_V1_PREFIX
更新多个 API 文件,将 API_V1_PREFIX 替换为直接使用 /admin 路径。
简化 API 路径定义逻辑,提升代码可读性与维护性。
统一后台管理接口的路由配置,确保各管理端 API 端点保持一致性。
2026-05-29 10:29:11 +08:00

48 lines
1.4 KiB
TypeScript

export { ADMIN_API_BASE, LOTTERY_API_V1_BASE } from "@/api/paths";
export { getDrawCurrent } from "@/api/public-draw";
export { getAdminRiskPools } from "@/api/admin-risk";
export { getAdminCaptcha, getAdminMe, postAdminLogin } from "@/api/admin-auth";
export { getAdminPing } from "@/api/admin-ping";
export {
completeTransferInCredit,
getAdminPlayerWallets,
getAdminTransferOrders,
getAdminWalletTransactions,
manuallyProcessTransferOrder,
reverseTransferOrder,
} from "@/api/admin-wallet";
export {
getAdminReconcileJobItems,
getAdminReconcileJobs,
postAdminReconcileJob,
} from "@/api/admin-reconcile";
export { getAdminAuditLogs } from "@/api/admin-audit";
export {
getAdminReportDailyProfit,
getAdminReportPlayDimension,
getAdminReportPlayerWinLoss,
getAdminReportRebateCommission,
} from "@/api/admin-reports";
export {
downloadAdminReportJob,
getAdminReportJob,
getAdminReportJobs,
postAdminReportJob,
} from "@/api/admin-report-jobs";
export {
getAdminDraw,
getAdminDrawFinanceSummary,
getAdminDrawResultBatches,
getAdminDraws,
postAdminPublishResultBatch,
} from "@/api/admin-draws";
export { getAdminTicketItems } from "@/api/admin-tickets";
export { getAdminPlayerTicketItems } from "@/api/admin-player-tickets";
export type {
AdminAuthCaptchaResponse,
AdminAuthLoginRequest,
AdminAuthLoginResponse,
AdminAuthMeResponse,
AdminPingResponse,
} from "@/types/api";