feat(challenges): 新增今日打卡状态字段并更新进度构建逻辑

- 在 ChallengeProgressDto 中增加 checkedInToday 字段
- 修改 buildChallengeProgress 方法,支持传入 lastProgressAt 参数
- 所有调用处同步更新,确保返回包含今日打卡状态
- 使用 dayjs 判断最后进度时间是否为今日
This commit is contained in:
richarjiang
2025-09-29 17:12:54 +08:00
parent 64460a9d68
commit 12acbbd166
2 changed files with 15 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ export interface ChallengeProgressDto {
completed: number;
target: number;
remaining: number;
checkedInToday: boolean;
}
export interface RankingItemDto {