同步专业版IM服务超级群组的数据库和SDK
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
alter table `t_group` add column `_super_group` tinyint NOT NULL DEFAULT 0;
|
||||
|
||||
DROP TABLE IF EXISTS `t_group_messages`;
|
||||
CREATE TABLE `t_group_messages` (
|
||||
`_mid` bigint(20) NOT NULL PRIMARY KEY,
|
||||
`_sender` varchar(64) NOT NULL,
|
||||
`_gid` varchar(64) NOT NULL,
|
||||
`_line` int(11) NOT NULL,
|
||||
`_client_id` varchar(64) NULL,
|
||||
`_seq` bigint(20) NOT NULL,
|
||||
`_persist_flag` int(11) NOT NULL,
|
||||
`_mentioned_type` int(11) NOT NULL,
|
||||
`_mentioned_targets` BLOB NULL,
|
||||
`_to` BLOB NULL,
|
||||
`_cont_type` int(11) NOT NULL DEFAULT 0,
|
||||
`_duration` int(11) NOT NULL DEFAULT 0,
|
||||
`_dt` bigint(20) NOT NULL DEFAULT 0,
|
||||
INDEX `group_message_seq_uid_index` (`_gid` DESC, `_line`, `_seq` DESC)
|
||||
);
|
||||
+2722
File diff suppressed because it is too large
Load Diff
@@ -65,6 +65,9 @@ public class InputCreateGroup extends InputGroupBase {
|
||||
if(group_info.max_member_count > 0) {
|
||||
groupInfoBuilder.setMaxMemberCount(group_info.max_member_count);
|
||||
}
|
||||
if(group_info.isSuper_group()) {
|
||||
groupInfoBuilder.setSuperGroup(1);
|
||||
}
|
||||
|
||||
groupBuilder.setGroupInfo(groupInfoBuilder);
|
||||
if(group.getMembers() != null) {
|
||||
|
||||
@@ -8,10 +8,6 @@
|
||||
|
||||
package cn.wildfirechat.pojos;
|
||||
|
||||
import cn.wildfirechat.proto.WFCMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class OutputRecallMessageData {
|
||||
private OutputMessageData message;
|
||||
private String userId;
|
||||
|
||||
@@ -21,6 +21,7 @@ public class PojoGroupInfo {
|
||||
int searchable;
|
||||
int max_member_count;
|
||||
int history_message;
|
||||
boolean super_group;
|
||||
|
||||
public String getTarget_id() {
|
||||
return target_id;
|
||||
@@ -117,4 +118,12 @@ public class PojoGroupInfo {
|
||||
public void setHistory_message(int history_message) {
|
||||
this.history_message = history_message;
|
||||
}
|
||||
|
||||
public boolean isSuper_group() {
|
||||
return super_group;
|
||||
}
|
||||
|
||||
public void setSuper_group(boolean super_group) {
|
||||
this.super_group = super_group;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ public class ProtoConstants {
|
||||
int ConversationType_ChatRoom = 2;
|
||||
int ConversationType_Channel = 3;
|
||||
int ConversationType_Things = 4;
|
||||
int ConversationType_SecretChat = 5;
|
||||
}
|
||||
|
||||
//message GroupInfo -> type
|
||||
|
||||
Reference in New Issue
Block a user