new change

This commit is contained in:
chenZB666
2025-10-09 23:42:41 +08:00
parent e1b73b82a2
commit b96533827e
6 changed files with 215 additions and 72 deletions

View File

@@ -7,6 +7,17 @@ import CharacterCenterClient from './CharacterCenterClient';
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
// 角色类型定义
interface Character {
id: string;
name: string;
skinId: string;
created: string;
level: number;
description?: string;
isActive: boolean;
}
export default async function CharacterCenter() {
// 检查用户登录状态
const session = await getServerSession(authOptions);
@@ -20,7 +31,7 @@ export default async function CharacterCenter() {
const userName = session.user?.name || '玩家';
// 模拟的角色数据
const characters = [];
const characters: Character[] = [];
// 渲染客户端组件
return <CharacterCenterClient userName={userName} characters={characters} />;