From 272b75b2e7d1656f88f5886d8de797de4140565f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 11 Apr 2024 20:11:05 +0800 Subject: [PATCH] 1 --- database/frienddb_new.sql | 23 +++++++++++++++++++++++ server/imserver_new/dblog/dblogmgr.go | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/database/frienddb_new.sql b/database/frienddb_new.sql index c7684afb..50d13335 100644 --- a/database/frienddb_new.sql +++ b/database/frienddb_new.sql @@ -202,6 +202,29 @@ CREATE TABLE `t_guild_log` ( /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; +-- +-- Table structure for table `t_log` +-- + +DROP TABLE IF EXISTS `t_log`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_log` ( + `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', + `type` varchar(255) NOT NULL DEFAULT '' COMMENT '日志类型', + `subtype` varchar(255) NOT NULL DEFAULT '' COMMENT '日志子类型', + `param1` varchar(666) NOT NULL DEFAULT '' COMMENT 'param1', + `param2` varchar(666) NOT NULL DEFAULT '' COMMENT 'param2', + `param3` varchar(666) NOT NULL DEFAULT '' COMMENT 'param3', + `param4` varchar(666) NOT NULL DEFAULT '' COMMENT 'param4', + `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + KEY `account_id_type_subtype` (`account_id`, `type`, `subtype`) +) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +/*!40101 SET character_set_client = @saved_cs_client */; + /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; diff --git a/server/imserver_new/dblog/dblogmgr.go b/server/imserver_new/dblog/dblogmgr.go index 628ba1c1..9036f252 100644 --- a/server/imserver_new/dblog/dblogmgr.go +++ b/server/imserver_new/dblog/dblogmgr.go @@ -16,6 +16,6 @@ func (this *dbLogMgr) FriendAdd(string, string) { } -func (this* dbLogMgr) aFriendDel(string, string) { +func (this* dbLogMgr) FriendDel(string, string) { }