chore: suite

This commit is contained in:
xiaojunnuo
2024-12-19 01:21:55 +08:00
parent 8814ffeda6
commit 45839f227a
16 changed files with 422 additions and 89 deletions

View File

@@ -49,4 +49,10 @@ export abstract class CrudController<T> extends BaseController {
await this.getService().delete([id]);
return this.ok(null);
}
@Post('/deleteByIds')
async deleteByIds(@Body('ids') ids: number[]) {
await this.getService().delete(ids);
return this.ok(null);
}
}