feat(challenges): 添加挑战源和分享代码字段,更新挑战详情和列表接口

This commit is contained in:
richarjiang
2025-11-26 17:26:27 +08:00
parent 029b8f46b9
commit 26e88ae610
4 changed files with 11 additions and 4 deletions

View File

@@ -178,6 +178,8 @@ export class ChallengesService {
isJoined: Boolean(participation),
type: challenge.type,
badge: challenge.type === ChallengeType.SLEEP ? sleepBadge : undefined,
source: challenge.source,
shareCode: challenge.shareCode,
};
});
}
@@ -284,6 +286,9 @@ export class ChallengesService {
unit: challenge.progressUnit,
type: challenge.type,
badge,
creatorId: challenge.creatorId,
shareCode: challenge.shareCode,
source: challenge.source,
};
}