This commit is contained in:
aozhiwei 2020-09-15 19:52:30 +08:00
parent 6b806ff307
commit 9d937a50ea
3 changed files with 18 additions and 10 deletions

View File

@ -24,8 +24,15 @@ class Guild
public:
long long guild_id = 0;
std::string guild_name;
int guild_lv = 0;
int guild_exp = 0;
int guild_badge = 0;
int guild_apply_num = 0;
std::string guild_notice;
std::string guild_declaration;
std::string owner_id;
std::string creator_id;
int guild_status = 0;
int createtime = 0;
a8::TimerAttacher timer_attacher;

View File

@ -323,23 +323,23 @@ message CMGuildCreate
//
message SMGuildCreate
{
optional int32 errcode = 1; //1: 2:
optional int32 errcode = 1; //1: 2:
optional string errmsg = 2; //
}
//
//
message CMGuildJoin
{
optional int64 guild_id = 1; //id
optional int64 guild_id = 1; //id
}
//
message SMGuildJoin
{
optional int32 errcode = 1; //1:id不存在 2:
optional int32 errcode = 1; //1:id不存在 2:
optional string errmsg = 2; //
}
//
//
message CMGuildAgree
{
}
@ -362,7 +362,7 @@ message SMGuildKick
optional string errmsg = 2; //
}
//退
//退
message CMGuildQuit
{
}
@ -372,7 +372,7 @@ message SMGuildQuit
optional string errmsg = 2; //
}
//
//
message CMGuildDismiss
{
}
@ -382,10 +382,10 @@ message SMGuildDismiss
optional string errmsg = 2; //
}
//
//
message CMGuildRename
{
optional string new_guild_name = 1; //
optional string new_guild_name = 1; //
}
message SMGuildRename
{

View File

@ -106,7 +106,8 @@ CREATE TABLE `guild` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `guild_id` (`guild_id`),
KEY `owner_id` (`owner_id`)
KEY `owner_id` (`owner_id`),
KEY `creator_id` (`creator_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 */;