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