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
544bcd9a
Commit
544bcd9a
authored
Apr 27, 2022
by
罗长华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会话表增加 是否禁止群成员互加好友 是否禁止发红包 是否禁止发图片 是否禁止发链接 四个字段
parent
05b199c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
11 deletions
+45
-11
core/src/main/java/com/wecloud/im/entity/ImConversation.java
+16
-0
docs/db/wecloud_im.sql
+29
-11
No files found.
core/src/main/java/com/wecloud/im/entity/ImConversation.java
View file @
544bcd9a
...
...
@@ -12,6 +12,7 @@ import java.util.Date;
import
javax.validation.constraints.NotNull
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
/**
...
...
@@ -71,4 +72,19 @@ public class ImConversation extends BaseEntity {
@ApiModelProperty
(
"禁言开关 1-未禁言 2-禁言"
)
private
Integer
muted
;
@TableField
(
"is_forbid_add_friend"
)
@ApiModelProperty
(
"禁止互加好友"
)
private
Boolean
forbidAddFriend
;
@TableField
(
"is_forbid_send_red_packets"
)
@ApiModelProperty
(
"禁止发红包"
)
private
Boolean
forbidSendRedPackets
;
@TableField
(
"is_forbid_send_pic"
)
@ApiModelProperty
(
"禁止发图片"
)
private
Boolean
forbidSendPic
;
@TableField
(
"is_forbid_send_link"
)
@ApiModelProperty
(
"禁止发链接"
)
private
Boolean
forbidSendLink
;
}
docs/db/wecloud_im.sql
View file @
544bcd9a
...
...
@@ -16,7 +16,7 @@
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for im_application
...
...
@@ -39,7 +39,8 @@ CREATE TABLE `im_application`
`contrast_extended_field_status`
int
(
1
)
DEFAULT
'0'
COMMENT
'创建会话时对比扩展字段 0不 1是'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
KEY
`app_key`
(
`app_key`
)
USING
HASH
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'第三方应用表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'第三方应用表'
;
-- ----------------------------
-- Table structure for im_client
...
...
@@ -60,8 +61,9 @@ CREATE TABLE `im_client`
`head_portrait`
varchar
(
1000
)
DEFAULT
NULL
COMMENT
'头像'
,
`nickname`
varchar
(
30
)
DEFAULT
NULL
COMMENT
'主昵称'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
KEY
`
``
fk_appid
``
,
``
client_id
``
`
(
`fk_appid`
,
`client_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'终端表'
;
UNIQUE
KEY
`
``
fk_appid
``
,
``
client_id
``
`
(
`fk_appid`
,
`client_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'终端表'
;
-- ----------------------------
-- Table structure for im_client_blacklist
...
...
@@ -76,7 +78,8 @@ CREATE TABLE `im_client_blacklist`
`fk_client_id_prevent`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'拉黑者'
,
`fk_client_id_be_prevent`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'被拉黑'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'黑名单'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'黑名单'
;
-- ----------------------------
-- Table structure for im_conversation
...
...
@@ -94,7 +97,8 @@ CREATE TABLE `im_conversation`
`attributes`
json
DEFAULT
NULL
COMMENT
'可选 自定义属性,供开发者扩展使用。'
,
`system`
tinyint
(
1
)
DEFAULT
NULL
COMMENT
'可选 对话类型标志,是否是系统对话,后面会说明。'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'会话表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'会话表'
;
-- ----------------------------
-- Table structure for im_conversation_members
...
...
@@ -114,7 +118,8 @@ CREATE TABLE `im_conversation_members`
`client_remark_name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'会话中client的备注名'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`fk_conversation_id`
(
`fk_conversation_id`
)
USING
HASH
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'会话成员表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'会话成员表'
;
-- ----------------------------
-- Table structure for im_inbox
...
...
@@ -135,7 +140,8 @@ CREATE TABLE `im_inbox`
`fk_conversation_id`
bigint
(
20
)
NOT
NULL
COMMENT
'会话id'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`getMyOfflineMsg`
(
`receiver`
)
USING
HASH
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息收件箱表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息收件箱表'
;
-- ----------------------------
-- Table structure for im_ios_apns
...
...
@@ -150,7 +156,8 @@ CREATE TABLE `im_ios_apns`
`bundle_id`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'bundle_id'
,
`pwd`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'证书密码'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'apns配置表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'apns配置表'
;
-- ----------------------------
-- Table structure for im_message
...
...
@@ -173,7 +180,8 @@ CREATE TABLE `im_message`
`send_status`
int
(
2
)
DEFAULT
NULL
COMMENT
'发送状态
\n
1AVIMMessageStatusSending(发送中)
\n
2AVIMMessageStatusSent(发送成功)
\n
3AVIMMessageStatusFailed(失败)'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`
``
fk_conversation_id
``
`
(
`fk_conversation_id`
)
USING
HASH
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息存储表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息存储表'
;
-- ----------------------------
-- Table structure for im_rtc_channel
...
...
@@ -190,7 +198,8 @@ CREATE TABLE `im_rtc_channel`
`attributes`
json
DEFAULT
NULL
COMMENT
'可选 自定义属性,供开发者扩展使用。'
,
`channel_status`
int
(
1
)
DEFAULT
NULL
COMMENT
'频道状态, 1打开 , 0关闭'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'Rtc频道表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'Rtc频道表'
;
-- ----------------------------
-- Table structure for im_rtc_log
...
...
@@ -222,3 +231,12 @@ alter table `im_conversation_members`
add
column
`is_do_not_disturb`
tinyint
(
1
)
unsigned
default
0
comment
'免打扰开关 0-关闭 1开启'
;
alter
table
`im_conversation_members`
add
column
`is_top`
tinyint
(
1
)
unsigned
default
0
comment
'置顶开关 0-关闭 1开启'
;
alter
table
`im_conversation`
add
column
`is_forbid_add_friend`
tinyint
(
1
)
unsigned
default
0
comment
'是否禁止群里互加好友0否1是'
;
alter
table
`im_conversation`
add
column
`is_forbid_send_red_packets`
tinyint
(
1
)
unsigned
default
0
comment
'是否禁止发红包0否1是'
;
alter
table
`im_conversation`
add
column
`is_forbid_send_pic`
tinyint
(
1
)
unsigned
default
0
comment
'是否禁止发图片0否1是'
;
alter
table
`im_conversation`
add
column
`is_forbid_send_link`
tinyint
(
1
)
unsigned
default
0
comment
'是否禁止发链接0否1是'
;
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