feat: 添加财务摘要接口,更新管理员抽奖模块和导航,优化权限管理逻辑
This commit is contained in:
13
src/app/admin/(shell)/draws/[drawId]/finance/page.tsx
Normal file
13
src/app/admin/(shell)/draws/[drawId]/finance/page.tsx
Normal 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} />;
|
||||
}
|
||||
@@ -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} />;
|
||||
}
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user