Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix(dto): change language type from enum to string in material schema… (#195)
nevin949aec711fec
diff --git a/project/backend/apps/aitoearn-server/src/content/dto/material.dto.ts b/project/backend/apps/aitoearn-server/src/content/dto/material.dto.tsindex 5854e059..6372ac9e 100644--- a/project/backend/apps/aitoearn-server/src/content/dto/material.dto.ts+++ b/project/backend/apps/aitoearn-server/src/content/dto/material.dto.ts@@ -43,7 +43,7 @@ export const createMaterialTaskSchema = z.object({coverGroup: z.string().describe('参考描述'),option: z.any().optional().describe('高级设置'),textMax: z.number().optional().describe('最大文字数量'),- language: z.enum(['中文', '英文']).optional().describe('语言'),+ language: z.string().optional().describe('语言'),// type: z.enum([MaterialType.VIDEO, MaterialType.ARTICLE]).describe('草稿类型'),autoDeleteMedia: z.boolean().optional().describe('自动删除素材'),})