feat: 支持新的关卡数据结构
This commit is contained in:
@@ -7,12 +7,24 @@ export class LevelListItemDto {
|
||||
@ApiProperty({ description: '关卡编号' })
|
||||
level!: number;
|
||||
|
||||
@ApiProperty({ description: '图片 URL' })
|
||||
imageUrl!: string;
|
||||
@ApiProperty({ description: '图片1 URL' })
|
||||
image1Url!: string;
|
||||
|
||||
@ApiProperty({ description: '图片1 文本说明', nullable: true })
|
||||
image1Description!: string | null;
|
||||
|
||||
@ApiProperty({ description: '图片2 URL' })
|
||||
image2Url!: string;
|
||||
|
||||
@ApiProperty({ description: '图片2 文本说明', nullable: true })
|
||||
image2Description!: string | null;
|
||||
|
||||
@ApiProperty({ description: '答案(仅已通关时返回)', nullable: true })
|
||||
answer!: string | null;
|
||||
|
||||
@ApiProperty({ description: '谐音梗说明(仅已通关时返回)', nullable: true })
|
||||
punchline!: string | null;
|
||||
|
||||
@ApiProperty({ description: '线索1(仅已通关时返回)', nullable: true })
|
||||
hint1!: string | null;
|
||||
|
||||
@@ -25,7 +37,10 @@ export class LevelListItemDto {
|
||||
@ApiProperty({ description: '是否已通关' })
|
||||
completed!: boolean;
|
||||
|
||||
@ApiProperty({ description: '通关时长(秒),未通关时为 null', nullable: true })
|
||||
@ApiProperty({
|
||||
description: '通关时长(秒),未通关时为 null',
|
||||
nullable: true,
|
||||
})
|
||||
timeSpent!: number | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user