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

@@ -22,12 +22,10 @@ export class CreateCustomChallengeDto {
@ApiProperty({ description: '开始时间戳(毫秒)', example: 1704067200000 })
@IsNumber()
@Min(Date.now())
startAt: number;
@ApiProperty({ description: '结束时间戳(毫秒)', example: 1705881600000 })
@IsNumber()
@Min(Date.now() + 86400000) // 至少未来 1 天
endAt: number;
@ApiProperty({ description: '每日目标值如喝水8杯', example: 8, minimum: 1, maximum: 1000 })