feat: 更新 PagePKData 组件,添加挑战参与者排行摘要支持

This commit is contained in:
richarjiang
2026-05-12 21:37:13 +08:00
parent b7dec68dd6
commit 1cbc25481b
4 changed files with 297 additions and 78 deletions

View File

@@ -162,6 +162,17 @@ export interface SubmitShareData {
levels: SubmittedShareLevelData[];
}
/** 分享挑战参与者排行摘要 */
export interface ShareParticipantRankSummary {
userId?: string | null;
nickname?: string | null;
nickName?: string | null;
avatarUrl?: string | null;
rank?: number | null;
correctCount?: number | null;
totalTimeSpent?: number | null;
}
/** 我创建的分享挑战条目 */
export interface CreatedShareItem {
id: string;
@@ -171,6 +182,10 @@ export interface CreatedShareItem {
participantCount: number;
userRank: number | null;
createdAt: string;
firstPlaceUser?: ShareParticipantRankSummary | null;
topParticipant?: ShareParticipantRankSummary | null;
firstParticipant?: ShareParticipantRankSummary | null;
champion?: ShareParticipantRankSummary | null;
}
/** 我创建的分享挑战列表响应 */