feat: 添加财务摘要接口,更新管理员抽奖模块和导航,优化权限管理逻辑

This commit is contained in:
2026-05-11 16:21:22 +08:00
parent f083b28fc6
commit b539bf0660
57 changed files with 2134 additions and 108 deletions

View File

@@ -0,0 +1,13 @@
import { DrawFinanceConsole } from "@/modules/draws/draw-finance-console";
import type { Metadata } from "next";
export const metadata: Metadata = {
title: "期号收支",
};
export default async function AdminDrawFinancePage(props: {
params: Promise<{ drawId: string }>;
}) {
const { drawId } = await props.params;
return <DrawFinanceConsole drawId={drawId} />;
}

View File

@@ -0,0 +1,14 @@
import { DrawPublishConsole } from "@/modules/draws/draw-publish-console";
import type { Metadata } from "next";
export const metadata: Metadata = {
title: "开奖结果发布",
};
/** PRD §11.4:与 `POST /api/v1/admin/draws/{draw}/result-batches/{batch}/publish` 联调页 */
export default async function AdminDrawPublishBatchPage(props: {
params: Promise<{ drawId: string; batchId: string }>;
}) {
const { drawId, batchId } = await props.params;
return <DrawPublishConsole drawId={drawId} batchId={batchId} />;
}

View File

@@ -1,8 +1,9 @@
import { DrawPublishConsole } from "@/modules/draws/draw-publish-console";
import { redirect } from "next/navigation";
export default async function AdminDrawPublishPage(props: {
/** 兼容旧链接:发布页统一为 `/publish/[batchId]`(与接口动词一致)。 */
export default async function AdminDrawReviewBatchRedirectPage(props: {
params: Promise<{ drawId: string; batchId: string }>;
}) {
const { drawId, batchId } = await props.params;
return <DrawPublishConsole drawId={drawId} batchId={batchId} />;
redirect(`/admin/draws/${drawId}/publish/${batchId}`);
}