mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
pref: 支持子域名托管的域名证书申请
This commit is contained in:
@@ -217,4 +217,20 @@ export abstract class BaseService<T> {
|
||||
}
|
||||
throw new PermissionException('权限不足');
|
||||
}
|
||||
|
||||
async batchDelete(ids: number[], userId: number) {
|
||||
if(userId >0){
|
||||
const list = await this.getRepository().find({
|
||||
where: {
|
||||
// @ts-ignore
|
||||
id: In(ids),
|
||||
userId,
|
||||
},
|
||||
})
|
||||
// @ts-ignore
|
||||
ids = list.map(item => item.id)
|
||||
}
|
||||
|
||||
await this.delete(ids);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user