This commit is contained in:
xiaojunnuo
2024-10-10 22:13:07 +08:00
parent 50173aa265
commit a6fb15f81b
5 changed files with 20 additions and 8 deletions
@@ -52,6 +52,12 @@ export class CnameRecordController extends CrudController<CnameProviderService>
return super.delete(id);
}
@Post('/deleteByIds', { summary: 'sys:settings:edit' })
async deleteByIds(@Body(ALL) body: { ids: number[] }) {
const res = await this.service.delete(body.ids);
return this.ok(res);
}
@Post('/setDefault', { summary: 'sys:settings:edit' })
async setDefault(@Body('id') id: number) {
await this.service.setDefault(id);