From a5ab693852b4b4f14eacfb808e3b5769d56fe6ac Mon Sep 17 00:00:00 2001 From: tikkhun Date: Thu, 8 Jan 2026 18:56:15 +0800 Subject: [PATCH] =?UTF-8?q?docs(dto):=20=E4=BF=AE=E6=AD=A3=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=B8=AD=E7=9A=84=E4=B8=AD=E6=96=87=E6=8B=AC=E5=8F=B7?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dto/api.dto.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dto/api.dto.ts b/src/dto/api.dto.ts index 9eb5102..6cd4c41 100644 --- a/src/dto/api.dto.ts +++ b/src/dto/api.dto.ts @@ -56,7 +56,7 @@ export class UnifiedSearchParamsDTO> { * 批量操作错误项 */ export interface BatchErrorItem { - // 错误项标识(可以是ID、邮箱等) + // 错误项标识(可以是ID、邮箱等) identifier: string; // 错误信息 error: string; @@ -76,7 +76,7 @@ export interface BatchOperationResult { updated?: number; // 删除数量 deleted?: number; - // 跳过的数量(如数据已存在或无需处理) + // 跳过的数量(如数据已存在或无需处理) skipped?: number; // 错误列表 errors: BatchErrorItem[]; @@ -101,7 +101,7 @@ export class SyncOperationResult implements BatchOperationResult { * 批量操作错误项DTO */ export class BatchErrorItemDTO { - @ApiProperty({ description: '错误项标识(如ID、邮箱等)', type: String }) + @ApiProperty({ description: '错误项标识(如ID、邮箱等)', type: String }) @Rule(RuleType.string().required()) identifier: string; @@ -164,7 +164,7 @@ export class SyncParamsDTO { @Rule(RuleType.string().optional()) endDate?: string; - @ApiProperty({ description: '强制同步(忽略缓存)', type: Boolean, required: false, default: false }) + @ApiProperty({ description: '强制同步(忽略缓存)', type: Boolean, required: false, default: false }) @Rule(RuleType.boolean().optional()) force?: boolean = false; } @@ -183,7 +183,7 @@ export class BatchQueryDTO { } /** - * 批量操作结果类(泛型支持) + * 批量操作结果类(泛型支持) */ export class BatchOperationResultDTOGeneric extends BatchOperationResultDTO { @ApiProperty({ description: '操作成功的数据列表', type: Array }) @@ -191,7 +191,7 @@ export class BatchOperationResultDTOGeneric extends BatchOperationResultDTO { } /** - * 同步操作结果类(泛型支持) + * 同步操作结果类(泛型支持) */ export class SyncOperationResultDTOGeneric extends SyncOperationResultDTO { @ApiProperty({ description: '同步成功的数据列表', type: Array })