From e8042c9e3e895cc9d4b4d9e7bb38cdcb0be599a4 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 26 May 2023 15:15:42 +0800 Subject: [PATCH] BatchInsertBlock --- pkg/common/constant/constant.go | 2 +- pkg/common/db/controller/msg_test.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index f12589f92..2a6a9e7ad 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -84,7 +84,7 @@ const ( ConversationPrivateChatNotification = 1701 ConversationUnreadNotification = 1702 - MsgRevokeNotification = 1750 + MsgRevokeNotification = 2101 BusinessNotificationBegin = 2000 BusinessNotification = 2001 diff --git a/pkg/common/db/controller/msg_test.go b/pkg/common/db/controller/msg_test.go index a13eee4db..e7ab7868a 100644 --- a/pkg/common/db/controller/msg_test.go +++ b/pkg/common/db/controller/msg_test.go @@ -154,6 +154,10 @@ func Test_Insert(t *testing.T) { ctx := context.Background() var arr []any for i := 0; i < 345; i++ { + if i%2 == 0 { + arr = append(arr, (*unRelationTb.MsgDataModel)(nil)) + continue + } arr = append(arr, &unRelationTb.MsgDataModel{ Seq: int64(i), Content: fmt.Sprintf("test-%d", i),