feat(challenges): 新增今日打卡状态字段并更新进度构建逻辑
- 在 ChallengeProgressDto 中增加 checkedInToday 字段 - 修改 buildChallengeProgress 方法,支持传入 lastProgressAt 参数 - 所有调用处同步更新,确保返回包含今日打卡状态 - 使用 dayjs 判断最后进度时间是否为今日
This commit is contained in:
@@ -2,6 +2,7 @@ export interface ChallengeProgressDto {
|
||||
completed: number;
|
||||
target: number;
|
||||
remaining: number;
|
||||
checkedInToday: boolean;
|
||||
}
|
||||
|
||||
export interface RankingItemDto {
|
||||
|
||||
Reference in New Issue
Block a user