feat(challenges): 添加挑战源和分享代码字段,更新挑战详情和列表接口
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user