feat(challenges): 添加挑战创建者标识和归档状态过滤
- 为挑战详情和列表接口添加isCreator字段标识创建者 - 过滤掉已归档的挑战,避免在列表和操作中显示 - 为挑战详情接口添加JWT认证守卫 - 将自定义挑战的progressUnit字段设为必填 - 优化挑战编辑时的错误提示信息 - 移除冗余的isCreator私有方法,直接在响应中设置标识
This commit is contained in:
@@ -57,9 +57,8 @@ export class CreateCustomChallengeDto {
|
||||
@IsOptional()
|
||||
summary?: string;
|
||||
|
||||
@ApiProperty({ description: '进度单位', example: '天', required: false })
|
||||
@ApiProperty({ description: '进度单位', example: '天', required: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@MaxLength(64)
|
||||
progressUnit?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user