|
@@ -73,6 +73,7 @@ namespace Hotline.Api.Controllers
|
|
private readonly ICallTelClient _callTelClient;
|
|
private readonly ICallTelClient _callTelClient;
|
|
private readonly IRepository<TelOperation> _telOperationRepository;
|
|
private readonly IRepository<TelOperation> _telOperationRepository;
|
|
private readonly IOptionsSnapshot<AppConfiguration> _appOptions;
|
|
private readonly IOptionsSnapshot<AppConfiguration> _appOptions;
|
|
|
|
+ private readonly IRepository<VoiceEvaluationButton> _voiceEvaluationButtonRepository;
|
|
|
|
|
|
public IPPbxController(IMapper mapper, IUserDomainService userDomainService,
|
|
public IPPbxController(IMapper mapper, IUserDomainService userDomainService,
|
|
ISessionContext sessionContext, IRepository<TrCallRecord> trCallRecordRepository,
|
|
ISessionContext sessionContext, IRepository<TrCallRecord> trCallRecordRepository,
|
|
@@ -92,7 +93,8 @@ namespace Hotline.Api.Controllers
|
|
IIPPbxApplication iPPbxApplication,
|
|
IIPPbxApplication iPPbxApplication,
|
|
ICallTelClient callTelClient,
|
|
ICallTelClient callTelClient,
|
|
IRepository<TelOperation> telOperationRepository,
|
|
IRepository<TelOperation> telOperationRepository,
|
|
- IOptionsSnapshot<AppConfiguration> appOptions)
|
|
|
|
|
|
+ IOptionsSnapshot<AppConfiguration> appOptions,
|
|
|
|
+ IRepository<VoiceEvaluationButton> voiceEvaluationButtonRepository)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_userDomainService = userDomainService;
|
|
_userDomainService = userDomainService;
|
|
@@ -122,6 +124,7 @@ namespace Hotline.Api.Controllers
|
|
_callTelClient = callTelClient;
|
|
_callTelClient = callTelClient;
|
|
_telOperationRepository = telOperationRepository;
|
|
_telOperationRepository = telOperationRepository;
|
|
_appOptions = appOptions;
|
|
_appOptions = appOptions;
|
|
|
|
+ _voiceEvaluationButtonRepository = voiceEvaluationButtonRepository;
|
|
}
|
|
}
|
|
|
|
|
|
#region 添添呼
|
|
#region 添添呼
|
|
@@ -692,6 +695,22 @@ namespace Hotline.Api.Controllers
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 兴唐语音评价接口
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [AllowAnonymous]
|
|
|
|
+ [StaffNoSessionContextFilter()]
|
|
|
|
+ [HttpPost("voiceevaluation/button")]
|
|
|
|
+ [LogFilterAlpha("兴唐语音评价通知")]
|
|
|
|
+ public async Task VoiceEvaluationButton(VoiceEvaluationButtonDto dto)
|
|
|
|
+ {
|
|
|
|
+ var data = _mapper.Map<VoiceEvaluationButton>(dto);
|
|
|
|
+ await _voiceEvaluationButtonRepository.AddAsync(data, HttpContext.RequestAborted);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
#region 通话记录(对内)
|
|
#region 通话记录(对内)
|