|
|
|
|
|
|
|
|
package com.tuoheng.admin.controller.callback; |
|
|
package com.tuoheng.admin.controller.callback; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.tuoheng.admin.entity.request.third.DspCallbackRequest; |
|
|
import com.tuoheng.admin.entity.request.third.DspCallbackRequest; |
|
|
import com.tuoheng.admin.entity.request.third.DspRecordingCallbackRequest; |
|
|
import com.tuoheng.admin.entity.request.third.DspRecordingCallbackRequest; |
|
|
import com.tuoheng.admin.service.third.dsp.IDspCallbackService; |
|
|
import com.tuoheng.admin.service.third.dsp.IDspCallbackService; |
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* @author 拓恒 |
|
|
* @author 拓恒 |
|
|
* @since 2021-09-01 |
|
|
* @since 2021-09-01 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Slf4j |
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("/dsp/callback") |
|
|
@RequestMapping("/dsp/callback") |
|
|
public class DspCallbackController { |
|
|
public class DspCallbackController { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 视频地址回调接口 |
|
|
|
|
|
|
|
|
* 录制视频地址回调接口 |
|
|
* |
|
|
* |
|
|
* @param request 回调请求体 |
|
|
* @param request 回调请求体 |
|
|
* @return JsonResult |
|
|
* @return JsonResult |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("/recording") |
|
|
@PostMapping("/recording") |
|
|
public JsonResult recordingCallBack(@Valid @RequestBody DspRecordingCallbackRequest request) { |
|
|
public JsonResult recordingCallBack(@Valid @RequestBody DspRecordingCallbackRequest request) { |
|
|
|
|
|
log.info("DSP服务回调地址接收成功, 录制视频,request:{}", JSONObject.toJSONString(request)); |
|
|
return dspCallbackService.recordingCallbackData(request); |
|
|
return dspCallbackService.recordingCallbackData(request); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |