Commit dccc2cbc by Future

音视频通话记录增加类型

parent 66cb87d0
...@@ -42,6 +42,9 @@ public class ImRtcRecord extends BaseEntity { ...@@ -42,6 +42,9 @@ public class ImRtcRecord extends BaseEntity {
@ApiModelProperty("接收方clientId") @ApiModelProperty("接收方clientId")
private String toClientId; private String toClientId;
@ApiModelProperty(value = "音视频类型: 1-video或2-voice")
private Integer callType;
/** /**
* 单人音视频状态枚举 * 单人音视频状态枚举
* @see com.wecloud.im.sdk.enums.RtcStateEnum * @see com.wecloud.im.sdk.enums.RtcStateEnum
......
...@@ -40,6 +40,7 @@ public class ImRtcRecordServiceImpl extends BaseServiceImpl<ImRtcRecordMapper, I ...@@ -40,6 +40,7 @@ public class ImRtcRecordServiceImpl extends BaseServiceImpl<ImRtcRecordMapper, I
rtcRecord.setChannelId(channelId); rtcRecord.setChannelId(channelId);
rtcRecord.setFromClientId(currentClient.getClientId()); rtcRecord.setFromClientId(currentClient.getClientId());
rtcRecord.setToClientId(param.getToClient()); rtcRecord.setToClientId(param.getToClient());
rtcRecord.setCallType(param.getCallType());
rtcRecord.setState(RtcStateEnum.CREATED.getCode()); rtcRecord.setState(RtcStateEnum.CREATED.getCode());
rtcRecord.setCreateTime(new Date()); rtcRecord.setCreateTime(new Date());
this.save(rtcRecord); this.save(rtcRecord);
......
-- 在feature-cluster 2021年12月22日之后,需要执行的的sql增量脚本 -- 在feature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
...@@ -170,6 +170,7 @@ CREATE TABLE `im_rtc_record` ...@@ -170,6 +170,7 @@ CREATE TABLE `im_rtc_record`
`from_client_id` varchar(200) DEFAULT NULL COMMENT '发起方clientId', `from_client_id` varchar(200) DEFAULT NULL COMMENT '发起方clientId',
`to_client_id` varchar(200) DEFAULT NULL COMMENT '接收方clientId', `to_client_id` varchar(200) DEFAULT NULL COMMENT '接收方clientId',
`state` tinyint NOT NULL DEFAULT '1' COMMENT '频道状态,1:音视频发起,2:音视频中,3:音视频结束', `state` tinyint NOT NULL DEFAULT '1' COMMENT '频道状态,1:音视频发起,2:音视频中,3:音视频结束',
`call_type` tinyint NOT NULL DEFAULT '1' COMMENT '音视频类型: 1-video或2-voice',
`start_time` timestamp NULL DEFAULT NULL COMMENT '音视频开始时间', `start_time` timestamp NULL DEFAULT NULL COMMENT '音视频开始时间',
`end_time` timestamp NULL DEFAULT NULL COMMENT '音视频结束时间', `end_time` timestamp NULL DEFAULT NULL COMMENT '音视频结束时间',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment