From c280031aff39fc218ee3a40910b837a4a30818a4 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 18 Jul 2024 18:31:28 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=B6=88=E6=81=AF=E8=A1=A8=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/domain/message/repo/message_repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/domain/message/repo/message_repo.go b/internal/logic/domain/message/repo/message_repo.go index 47a3a4f..fc7730b 100644 --- a/internal/logic/domain/message/repo/message_repo.go +++ b/internal/logic/domain/message/repo/message_repo.go @@ -1,7 +1,6 @@ package repo import ( - "fmt" "gim/internal/business/comm/utils" "gim/internal/logic/domain/message/model" "gim/pkg/db" @@ -16,7 +15,8 @@ type messageRepo struct{} var MessageRepo = new(messageRepo) func (*messageRepo) tableName(userId int64) string { - return fmt.Sprintf("message_%03d", userId%messageTableNum) + //return fmt.Sprintf("message_%03d", userId%messageTableNum) + return "message" } // Save 插入一条消息