|
@@ -4,7 +4,8 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'
|
|
|
import {
|
|
|
GetModuleListDto,
|
|
|
GetModuleConfigurationDto,
|
|
|
- SaveModuleConfigurationDto
|
|
|
+ SaveModuleConfigurationDto,
|
|
|
+ DeleteModuleConfigurationDto
|
|
|
} from '@/dto/agent-module'
|
|
|
|
|
|
import { AgentModuleService } from './service/agent-module.service'
|
|
@@ -43,4 +44,10 @@ export class AgentModuleController {
|
|
|
async getModuleAgentTypes() {
|
|
|
return this.agentModuleService.getModuleAgentTypes()
|
|
|
}
|
|
|
+
|
|
|
+ @Post('delete-module-configuration')
|
|
|
+ @ApiOperation({ summary: '删除模块配置' })
|
|
|
+ async deleteModuleConfiguration(@Body() body: DeleteModuleConfigurationDto) {
|
|
|
+ return this.agentModuleService.deleteModuleConfiguration(body.moduleId)
|
|
|
+ }
|
|
|
}
|