Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
dccc2cbc
Commit
dccc2cbc
authored
May 23, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音视频通话记录增加类型
parent
66cb87d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
core/src/main/java/com/wecloud/im/entity/ImRtcRecord.java
+3
-0
core/src/main/java/com/wecloud/im/service/impl/ImRtcRecordServiceImpl.java
+1
-0
docs/db/feature-cluster增量.sql
+2
-1
No files found.
core/src/main/java/com/wecloud/im/entity/ImRtcRecord.java
View file @
dccc2cbc
...
@@ -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
...
...
core/src/main/java/com/wecloud/im/service/impl/ImRtcRecordServiceImpl.java
View file @
dccc2cbc
...
@@ -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
);
...
...
docs/db/feature-cluster增量.sql
View file @
dccc2cbc
-- 在f
eature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
-- 在f
eature-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
'音视频结束时间'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment