package com.ruoyi.web.controller.smartor; import com.ruoyi.common.core.controller.BaseController; import com.smartor.domain.OutboundConfigAddReqVO; import com.smartor.domain.OutboundInstanceResVO; import com.smartor.service.IServicePhoneService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Map; /** * 三汇电话流程服务 Controller *

* ⚠️ 该前缀下的电话流程端点({@code /smartor/shphone/getFirstQues}、 * {@code /smartor/shphone/processResust})已随电话模块化搬进 {@code ruoyi-phone} * 的 {@code ShPhoneController}(URL 保持不变,三汇平台无需改回调地址)。 *

* 这里只留 {@code /smartor/shphone/addOutboundInstance}:它依赖 smartor 侧的外呼实例配置 * ({@code IServicePhoneService}),属于"外呼实例开通"而非电话会话链路,不归电话模块。 * * @author ls * @date 2026-08-26 */ @Slf4j @Api(description = "三汇电话流程服务") @RestController @RequestMapping("/smartor/shphone") public class ServicePhoneController extends BaseController { @Autowired private IServicePhoneService iServicePhoneService; @ApiOperation("新增外呼实例配置") @PostMapping("/addOutboundInstance") public Map addOutboundInstance(@RequestBody OutboundConfigAddReqVO request) { log.info("新增外呼实例配置:{}", request); OutboundInstanceResVO outboundInstanceResVO = iServicePhoneService.addOutboundInstance(request); return success(outboundInstanceResVO); } }