docs(dto): 修正注释中的中文括号格式

This commit is contained in:
tikkhun 2026-01-08 18:56:15 +08:00
parent fd7b3dae58
commit a5ab693852
1 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ export class UnifiedSearchParamsDTO<Where=Record<string, any>> {
* *
*/ */
export interface BatchErrorItem { export interface BatchErrorItem {
// 错误项标识(可以是ID、邮箱等 // 错误项标识(可以是ID、邮箱等)
identifier: string; identifier: string;
// 错误信息 // 错误信息
error: string; error: string;
@ -76,7 +76,7 @@ export interface BatchOperationResult {
updated?: number; updated?: number;
// 删除数量 // 删除数量
deleted?: number; deleted?: number;
// 跳过的数量(如数据已存在或无需处理 // 跳过的数量(如数据已存在或无需处理)
skipped?: number; skipped?: number;
// 错误列表 // 错误列表
errors: BatchErrorItem[]; errors: BatchErrorItem[];
@ -101,7 +101,7 @@ export class SyncOperationResult implements BatchOperationResult {
* DTO * DTO
*/ */
export class BatchErrorItemDTO { export class BatchErrorItemDTO {
@ApiProperty({ description: '错误项标识(如ID、邮箱等', type: String }) @ApiProperty({ description: '错误项标识(如ID、邮箱等)', type: String })
@Rule(RuleType.string().required()) @Rule(RuleType.string().required())
identifier: string; identifier: string;
@ -164,7 +164,7 @@ export class SyncParamsDTO {
@Rule(RuleType.string().optional()) @Rule(RuleType.string().optional())
endDate?: string; endDate?: string;
@ApiProperty({ description: '强制同步(忽略缓存', type: Boolean, required: false, default: false }) @ApiProperty({ description: '强制同步(忽略缓存)', type: Boolean, required: false, default: false })
@Rule(RuleType.boolean().optional()) @Rule(RuleType.boolean().optional())
force?: boolean = false; force?: boolean = false;
} }
@ -183,7 +183,7 @@ export class BatchQueryDTO {
} }
/** /**
* ( * ()
*/ */
export class BatchOperationResultDTOGeneric<T> extends BatchOperationResultDTO { export class BatchOperationResultDTOGeneric<T> extends BatchOperationResultDTO {
@ApiProperty({ description: '操作成功的数据列表', type: Array }) @ApiProperty({ description: '操作成功的数据列表', type: Array })
@ -191,7 +191,7 @@ export class BatchOperationResultDTOGeneric<T> extends BatchOperationResultDTO {
} }
/** /**
* ( * ()
*/ */
export class SyncOperationResultDTOGeneric<T> extends SyncOperationResultDTO { export class SyncOperationResultDTOGeneric<T> extends SyncOperationResultDTO {
@ApiProperty({ description: '同步成功的数据列表', type: Array }) @ApiProperty({ description: '同步成功的数据列表', type: Array })