添加公会表、协议

This commit is contained in:
aozhiwei 2020-07-04 22:29:12 +08:00
parent 67572ef05d
commit 27dcc1835c
3 changed files with 117 additions and 0 deletions

View File

@ -32,6 +32,15 @@ enum CMMessageId_e
_CMGroupQuit = 205;
_CMGroupDismiss = 206;
_CMGroupRename = 207;
_CMGuildCreate = 231;
_CMGuildJoin = 232;
_CMGuildAgree = 233;
_CMGuildKick = 234;
_CMGuildQuit = 235;
_CMGuildDismiss = 236;
_CMGuildRename = 237;
}
enum SMMessageId_e
@ -62,6 +71,14 @@ enum SMMessageId_e
_SMGroupDismiss = 206;
_SMGroupRename = 207;
_SMGuildCreate = 231;
_SMGuildJoin = 232;
_SMGuildAgree = 233;
_SMGuildKick = 234;
_SMGuildQuit = 235;
_SMGuildDismiss = 236;
_SMGuildRename = 237;
_SMUserStatusNotify = 501;
_SMUserInfoUpdate = 502;
_SMCustomMsgNotify = 503;

View File

@ -297,6 +297,84 @@ message SMGroupRename
optional string errmsg = 2; //
}
//
message CMGuildCreate
{
optional string guild_name = 1; //
}
//
message SMGuildCreate
{
optional int32 errcode = 1; //1: 2:
optional string errmsg = 2; //
}
//
message CMGuildJoin
{
optional int64 guild_id = 1; //id
}
//
message SMGuildJoin
{
optional int32 errcode = 1; //1:id不存在 2:
optional string errmsg = 2; //
}
//
message CMGuildAgree
{
}
message SMGuildAgree
{
optional int32 errcode = 1;
optional string errmsg = 2;
}
//
message CMGuildKick
{
optional string account_id = 1;
}
//
message SMGuildKick
{
optional int32 errcode = 1; //1:id错误
optional string errmsg = 2; //
}
//退
message CMGuildQuit
{
}
message SMGuildQuit
{
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMGuildDismiss
{
}
message SMGuildDismiss
{
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMGuildRename
{
optional string new_guild_name = 1; //
}
message SMGuildRename
{
optional int32 errcode = 1; //
optional string errmsg = 2; //
}
//
message CMSendChatMsg
{

View File

@ -79,6 +79,28 @@ CREATE TABLE `group` (
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-- Table structure for table `guild`
--
DROP TABLE IF EXISTS `guild`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`guild_id` bigint NOT NULL COMMENT 'guild_id',
`guild_name` tinyblob COMMENT 'guild_name',
`owner_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '公会主',
`creator_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '公会创建者',
`guild_data` mediumblob COMMENT '公会数据',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `guild_id` (`guild_id`),
KEY `owner_id` (`owner_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-- Table structure for table `friend_apply`
--