feat: 添加财务摘要接口,更新管理员抽奖模块和导航,优化权限管理逻辑
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const playersModuleMeta = {
|
||||
segment: "players",
|
||||
title: "用户",
|
||||
description: "玩家列表、冻结/解冻、账号资料(路由已就绪,待接管理端 API)。",
|
||||
title: "玩家查询",
|
||||
description: "按玩家 ID 查钱包等(PRD 15.3);列表/冻结待管理端用户 API。",
|
||||
} as const;
|
||||
|
||||
26
src/modules/players/players-console.tsx
Normal file
26
src/modules/players/players-console.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
|
||||
import { PlayerWalletPanel } from "@/modules/wallet/wallet-console";
|
||||
|
||||
/** PRD 15.3:玩家查询(当前对接 `GET .../players/{id}/wallets`)。 */
|
||||
export function PlayersConsole(): React.ReactElement {
|
||||
return (
|
||||
<div className="flex w-full max-w-none flex-col gap-6">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>玩家查询</CardTitle>
|
||||
<CardDescription>
|
||||
按本地玩家主键查询钱包余额;需具备{" "}
|
||||
<code className="rounded bg-muted px-1">
|
||||
prd.users.manage | view_finance | view_cs
|
||||
</code>{" "}
|
||||
之一。完整列表/冻结等能力待管理端用户 API 就绪后扩展。
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
<PlayerWalletPanel />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user