perf: 证书监控增加批量删除

This commit is contained in:
xiaojunnuo
2025-10-21 00:01:28 +08:00
parent 5ff4e3c4ea
commit e578c52fdf
5 changed files with 68 additions and 5 deletions
@@ -92,6 +92,14 @@ export class SiteInfoController extends CrudController<SiteInfoService> {
return await super.delete(id);
}
@Post('/batchDelete', { summary: Constants.per.authOnly })
async batchDelete(@Body(ALL) body: any) {
const userId = this.getUserId();
await this.service.batchDelete(body.ids,userId);
return this.ok();
}
@Post('/check', { summary: Constants.per.authOnly })
async check(@Body('id') id: number) {
await this.service.checkUserId(id, this.getUserId());