|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.szyx.spring.boot.autoconfigure; |
|
|
|
|
|
|
|
import com.cn.bjca.chatbots.core.callback.controller.CallRecordCallbackController; |
|
|
|
import com.cn.bjca.chatbots.core.client.ChatBotsClient; |
|
|
|
import com.cn.bjca.chatbots.core.properties.ChatbotsProperties; |
|
|
|
import com.cn.bjca.chatbots.core.service.DialogFlowService; |
|
|
@@ -36,6 +37,17 @@ public class ChatBotsAutoConfiguration { |
|
|
|
this.chatbotsProperties = chatbotsProperties; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 自动配置 CallRecordCallbackController。 |
|
|
|
* 如果业务系统没有定义 CallRecordCallbackController,则使用该默认实现。 |
|
|
|
*/ |
|
|
|
@Bean |
|
|
|
@ConditionalOnMissingBean |
|
|
|
public CallRecordCallbackController callRecordCallbackController() { |
|
|
|
return new CallRecordCallbackController(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
@ConditionalOnMissingBean |
|
|
|
public ChatBotsClient defaultChatBotsClient() { |
|
|
|