app通话回调

This commit is contained in:
俞扬
2023-08-11 18:24:31 +08:00
parent e5f79048f0
commit bef67d3785
9 changed files with 208 additions and 29 deletions

View File

@@ -51,7 +51,8 @@ public class TokenValidateFilter implements Filter {
//TODO 800回调地址暂时不做验证
"/partner/pc/flow/qualificationReview/callback",
"/**/ecSync/ecToApplet/**",
"/partner/pc/websocket/**");
"/partner/pc/websocket/**",
"/partner/pc/call/**");
/**

View File

@@ -1,6 +1,8 @@
package com.cool.store.controller;
import com.cool.store.exception.ApiException;
import com.cool.store.request.CallFinishBackReq;
import com.cool.store.request.CallRecordBackReq;
import com.cool.store.request.CallUpReq;
import com.cool.store.request.GetTipsInfoReq;
import com.cool.store.response.ResponseResult;
@@ -34,4 +36,18 @@ public class CallController {
callService.callUp(request);
return ResponseResult.success();
}
@PostMapping("/finish/callback")
@ApiOperation("通话结束回调")
public ResponseResult callFinishBack(@RequestBody CallFinishBackReq request) throws ApiException {
callService.callFinishBack(request);
return ResponseResult.success();
}
@PostMapping("/record/callback")
@ApiOperation("录音上传回调")
public ResponseResult callRecordBack(@RequestBody CallRecordBackReq request) throws ApiException {
callService.callRecordBack(request);
return ResponseResult.success();
}
}