|
|
@@ -1,6 +1,7 @@ |
|
|
|
package repo |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"gim/internal/business/comm/utils" |
|
|
|
"gim/internal/logic/domain/message/model" |
|
|
|
"gim/pkg/db" |
|
|
@@ -15,8 +16,8 @@ type messageRepo struct{} |
|
|
|
var MessageRepo = new(messageRepo) |
|
|
|
|
|
|
|
func (*messageRepo) tableName(userId int64) string { |
|
|
|
//return fmt.Sprintf("message_%03d", userId%messageTableNum) |
|
|
|
return "message" |
|
|
|
return fmt.Sprintf("message_%03d", userId%messageTableNum) |
|
|
|
//return "message" |
|
|
|
} |
|
|
|
|
|
|
|
// Save 插入一条消息 |
|
|
|