|
@@ -4,7 +4,8 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'
|
|
import {
|
|
import {
|
|
GetNativeAgentListDto,
|
|
GetNativeAgentListDto,
|
|
GetNativeAgentConfigurationDto,
|
|
GetNativeAgentConfigurationDto,
|
|
- SaveNativeAgentConfigurationDto
|
|
|
|
|
|
+ SaveNativeAgentConfigurationDto,
|
|
|
|
+ DeleteNativeAgentConfigurationDto
|
|
} from '@/dto/agent-list'
|
|
} from '@/dto/agent-list'
|
|
|
|
|
|
import { AgentListService } from './service/agent-list.service'
|
|
import { AgentListService } from './service/agent-list.service'
|
|
@@ -58,4 +59,12 @@ export class AgentListController {
|
|
async getToolList() {
|
|
async getToolList() {
|
|
return this.agentListService.getToolList()
|
|
return this.agentListService.getToolList()
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Post('delete-native-agent-configuration')
|
|
|
|
+ @ApiOperation({ summary: '删除原生客服配置' })
|
|
|
|
+ async deleteNativeAgentConfiguration(
|
|
|
|
+ @Body() body: DeleteNativeAgentConfigurationDto
|
|
|
|
+ ) {
|
|
|
|
+ return this.agentListService.deleteNativeAgentConfiguration(body.agentId)
|
|
|
|
+ }
|
|
}
|
|
}
|