new change
This commit is contained in:
@@ -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} />;
|
||||
|
||||
Reference in New Issue
Block a user