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
03595a6f
Commit
03595a6f
authored
May 18, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化在线推送;
parent
e75e7675
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
6 deletions
+58
-6
bootstrap/src/test/java/io/geekidea/springbootplus/test/SignTest.java
+1
-1
common/src/main/java/com/wecloud/im/entity/ImConversation.java
+1
-1
common/src/main/java/com/wecloud/im/entity/ImInbox.java
+1
-1
common/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+1
-1
common/src/main/java/com/wecloud/im/tillo/app_ws/strategy/concrete/ImConcreteReceiveStrategy.java
+1
-1
common/src/main/java/com/wecloud/im/vo/MyConversationListVo.java
+52
-0
common/src/main/resources/mapper/ImInboxMapper.xml
+1
-1
No files found.
bootstrap/src/test/java/io/geekidea/springbootplus/test/SignTest.java
View file @
03595a6f
...
...
@@ -32,7 +32,7 @@ public class SignTest {
}
public
static
void
main
(
String
[]
args
)
{
String
clientId
=
"client_
111
"
;
String
clientId
=
"client_
333
"
;
String
appKey
=
"elLwpel1gWCHDqZy"
;
String
appSecret
=
"68809bb5a9077a83631aeb0b17b5965d6b2302faf2ab3737"
;
String
timestemp
=
String
.
valueOf
(
new
Date
().
getTime
());
...
...
common/src/main/java/com/wecloud/im/entity/ImConversation.java
View file @
03595a6f
...
...
@@ -51,7 +51,7 @@ public class ImConversation extends BaseEntity {
private
String
name
;
@ApiModelProperty
(
"可选 自定义属性,供开发者扩展使用。"
)
private
String
attributes
;
private
Object
attributes
;
@ApiModelProperty
(
"可选 对话类型标志,是否是系统对话,后面会说明。"
)
private
Boolean
system
;
...
...
common/src/main/java/com/wecloud/im/entity/ImInbox.java
View file @
03595a6f
...
...
@@ -22,7 +22,7 @@ import java.util.Date;
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"im_
I
nbox"
)
@TableName
(
"im_
i
nbox"
)
@ApiModel
(
value
=
"ImInbox对象"
)
public
class
ImInbox
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
common/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
03595a6f
...
...
@@ -86,7 +86,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
imConversation
.
setFkAppid
(
fkAppid
);
imConversation
.
setCreator
(
creator
);
imConversation
.
setName
(
imConversationCreate
.
getName
());
imConversation
.
setAttributes
(
imConversationCreate
.
getAttributes
()
.
toString
()
);
imConversation
.
setAttributes
(
imConversationCreate
.
getAttributes
());
imConversation
.
setSystem
(
false
);
imConversationService
.
save
(
imConversation
);
...
...
common/src/main/java/com/wecloud/im/tillo/app_ws/strategy/concrete/ImConcreteReceiveStrategy.java
View file @
03595a6f
...
...
@@ -141,7 +141,7 @@ public class ImConcreteReceiveStrategy extends AbstractReceiveStrategy {
imInbox
.
setId
(
imInboxId
);
imInbox
.
setCreateTime
(
new
Date
());
imInbox
.
setFkAppid
(
imApplication
.
getId
());
imInbox
.
setReceiver
(
conversationMembers
.
getId
());
imInbox
.
setReceiver
(
conversationMembers
.
get
FkClient
Id
());
imInbox
.
setFkMsgId
(
messageId
);
imInbox
.
setReadMsg
(
0
);
imInbox
.
setFkConversationId
(
toConversationId
);
...
...
common/src/main/java/com/wecloud/im/vo/MyConversationListVo.java
0 → 100644
View file @
03595a6f
package
com
.
wecloud
.
im
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <pre>
* 会话表 查询结果对象
* </pre>
*
* @author wei
* @date 2021-05-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"MyConversationListVo"
)
public
class
MyConversationListVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"会话id"
)
private
Long
id
;
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
"修改时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"对话中最后一条消息的发送或接收时间"
)
private
Date
lastMessage
;
@ApiModelProperty
(
"应用appid"
)
private
Long
fkAppid
;
@ApiModelProperty
(
"创建者客户端id"
)
private
Long
creator
;
@ApiModelProperty
(
"可选 对话的名字,可为群组命名。"
)
private
String
name
;
@ApiModelProperty
(
"可选 自定义属性,供开发者扩展使用。"
)
private
String
attributes
;
@ApiModelProperty
(
"可选 对话类型标志,是否是系统对话,后面会说明。"
)
private
Boolean
system
;
}
\ No newline at end of file
common/src/main/resources/mapper/ImInboxMapper.xml
View file @
03595a6f
...
...
@@ -5,7 +5,7 @@
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id
, create_time, update_time, receiver_date, fk_appid, receiver, fk_msg_id, read, fk_conversation_id
, create_time, update_time, receiver_date, fk_appid, receiver, fk_msg_id, read
_msg
, fk_conversation_id
</sql>
<select
id=
"getImInboxById"
resultType=
"com.wecloud.im.param.ImInboxQueryVo"
>
...
...
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