|
@@ -49,9 +49,12 @@ import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoReque
|
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
|
|
|
import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogRequest;
|
|
|
import net.polyv.live.v1.entity.channel.viewdata.LiveListChannelViewlogResponse;
|
|
|
+import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordRequest;
|
|
|
+import net.polyv.live.v1.entity.chat.LiveGetConsultingRecordResponse;
|
|
|
import net.polyv.live.v1.service.channel.impl.LiveChannelOperateServiceImpl;
|
|
|
import net.polyv.live.v1.service.channel.impl.LiveChannelPlaybackServiceImpl;
|
|
|
import net.polyv.live.v1.service.channel.impl.LiveChannelViewdataServiceImpl;
|
|
|
+import net.polyv.live.v1.service.chat.impl.LiveChatRoomServiceImpl;
|
|
|
import net.polyv.live.v1.util.LiveSignUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -258,4 +261,27 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void GetConsultingRecord(PolyvLiveQueryBo bo) throws IOException, NoSuchAlgorithmException {
|
|
|
+ LiveGetConsultingRecordRequest liveGetConsultingRecordRequest = new LiveGetConsultingRecordRequest();
|
|
|
+ List<LiveGetConsultingRecordResponse> liveGetConsultingRecordResponseList = null;
|
|
|
+ try {
|
|
|
+ liveGetConsultingRecordRequest.setChannelId(bo.getChannelId())
|
|
|
+ .setBegin(0)
|
|
|
+ .setEnd(10);
|
|
|
+ liveGetConsultingRecordResponseList = new LiveChatRoomServiceImpl().getConsultingRecord(liveGetConsultingRecordRequest);
|
|
|
+ if (liveGetConsultingRecordResponseList != null) {
|
|
|
+ //to do something ......
|
|
|
+ System.out.println("测试查询咨询提问记录成功{}");
|
|
|
+ System.out.println(JSON.toJSONString(liveGetConsultingRecordResponseList));
|
|
|
+ }
|
|
|
+ } catch (PloyvSdkException e) {
|
|
|
+ //参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
|
|
|
+ // 异常返回做B端异常的业务逻辑,记录log 或者 上报到ETL 或者回滚事务
|
|
|
+ throw e;
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw e;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|