feat: 为批量归档补充批量恢复
This commit is contained in:
9
apps/server/src/common/batch-ids.dto.ts
Normal file
9
apps/server/src/common/batch-ids.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ArrayNotEmpty, IsArray, IsInt, Min } from 'class-validator';
|
||||
|
||||
export class BatchIdsDto {
|
||||
@IsArray()
|
||||
@ArrayNotEmpty()
|
||||
@IsInt({ each: true })
|
||||
@Min(1, { each: true })
|
||||
ids: number[];
|
||||
}
|
||||
Reference in New Issue
Block a user