feat:增加批量删除、软删除和软删除恢复
- 完成基础的软删除 - 完成树形数据的软删除(children未处理)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { IsDefined, IsUUID } from 'class-validator';
|
||||
|
||||
import { DtoValidation } from '@/modules/core/decorators';
|
||||
|
||||
/**
|
||||
* 批量删除验证
|
||||
*/
|
||||
@DtoValidation()
|
||||
export class DeleteDto {
|
||||
@IsUUID(undefined, {
|
||||
each: true,
|
||||
message: 'ID格式错误',
|
||||
})
|
||||
@IsDefined({
|
||||
each: true,
|
||||
message: 'ID必须指定',
|
||||
})
|
||||
ids: string[] = [];
|
||||
}
|
||||
Reference in New Issue
Block a user