Skip to content

Let's use AI to Earn!

fix: 补充话题列表

Nevin509b67262a89
diff --git a/aitoearn_web/server/aitoearn-gateway/src/core/plat/common.ts b/aitoearn_web/server/aitoearn-gateway/src/core/plat/common.ts
index f80f8565..2fea5bb3 100644
--- a/aitoearn_web/server/aitoearn-gateway/src/core/plat/common.ts
+++ b/aitoearn_web/server/aitoearn-gateway/src/core/plat/common.ts
@@ -27,6 +27,7 @@ export interface NewPublishData<T extends PlatOptons> {
readonly videoUrl?: string
readonly coverUrl?: string
readonly imgList?: string[]
+ topics?: string[]
readonly publishTime?: Date
readonly option?: T
}
diff --git a/aitoearn_web/server/aitoearn-gateway/src/core/plat/dto/publish.dto.ts b/aitoearn_web/server/aitoearn-gateway/src/core/plat/dto/publish.dto.ts
index a556297e..3c180137 100644
--- a/aitoearn_web/server/aitoearn-gateway/src/core/plat/dto/publish.dto.ts
+++ b/aitoearn_web/server/aitoearn-gateway/src/core/plat/dto/publish.dto.ts
@@ -467,6 +467,12 @@ export class CreatePublishDto {
@Expose()
readonly publishTime?: Date
+ @ApiProperty({ title: '话题列表', required: false })
+ @IsArray({ message: '话题列表' })
+ @IsOptional()
+ @Expose()
+ topics?: string[]
+
@ApiProperty({
title: '其他配置',
required: false,