feat: 增强钱包 API 与玩家会话管理
- 新增钱包 API 函数:getWalletLogs(获取钱包日志)、postWalletTransferIn(充值)及 postWalletTransferOut(提现) - 更新钱包相关类型定义,提升类型安全性 - 改进玩家会话管理:若当前无玩家资料,则自动拉取玩家信息 - 增强入口网关对过期会话的错误处理能力 - 更新 UI 组件,以适配新的结构与功能
This commit is contained in:
@@ -1,24 +1,5 @@
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
import { HallScreen } from "@/features/hall/hall-screen";
|
||||
|
||||
/** 下注大厅占位(§4.2 再接表格与期号) */
|
||||
export default function LotteryHallPlaceholderPage() {
|
||||
return (
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>下注大厅</CardTitle>
|
||||
<CardDescription>
|
||||
路由已打通;玩法表格、期号与余额将在此页迭代。
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
从入口页授权成功后可刷新本页;鉴权头会从会话存储恢复。
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
export default function LotteryHallPage() {
|
||||
return <HallScreen />;
|
||||
}
|
||||
|
||||
5
src/app/(player)/(main)/wallet/logs/page.tsx
Normal file
5
src/app/(player)/(main)/wallet/logs/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { WalletLogsScreen } from "@/features/wallet/wallet-logs-screen";
|
||||
|
||||
export default function WalletLogsPage() {
|
||||
return <WalletLogsScreen />;
|
||||
}
|
||||
6
src/app/(player)/(main)/wallet/page.tsx
Normal file
6
src/app/(player)/(main)/wallet/page.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { WalletScreen } from "@/features/wallet/wallet-screen";
|
||||
|
||||
/** 界面文档 §4.9 彩票钱包:余额、转入/转出、流水 */
|
||||
export default function WalletPage() {
|
||||
return <WalletScreen />;
|
||||
}
|
||||
5
src/app/(player)/(main)/wallet/transfer-in/page.tsx
Normal file
5
src/app/(player)/(main)/wallet/transfer-in/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { TransferInScreen } from "@/features/wallet/transfer-in-screen";
|
||||
|
||||
export default function WalletTransferInPage() {
|
||||
return <TransferInScreen />;
|
||||
}
|
||||
5
src/app/(player)/(main)/wallet/transfer-out/page.tsx
Normal file
5
src/app/(player)/(main)/wallet/transfer-out/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { TransferOutScreen } from "@/features/wallet/transfer-out-screen";
|
||||
|
||||
export default function WalletTransferOutPage() {
|
||||
return <TransferOutScreen />;
|
||||
}
|
||||
Reference in New Issue
Block a user