fix: pkg update.

pull/2148/head
Gordon 2 years ago
parent 9f982b22fb
commit 7ddcd08685

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type BlackModel struct { type BlackModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type ConversationModel struct { type ConversationModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
// FriendModel represents the data structure for a friend relationship in MongoDB. // FriendModel represents the data structure for a friend relationship in MongoDB.

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type FriendRequestModel struct { type FriendRequestModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type GroupModel struct { type GroupModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type GroupMemberModel struct { type GroupMemberModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type GroupRequestModel struct { type GroupRequestModel struct {

@ -18,7 +18,7 @@ import (
"context" "context"
"time" "time"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type LogModel struct { type LogModel struct {

@ -19,7 +19,7 @@ import (
"time" "time"
"github.com/openimsdk/protocol/user" "github.com/openimsdk/protocol/user"
"github.com/openimsdk/tools/pagination" "github.com/openimsdk/tools/db/pagination"
) )
type UserModel struct { type UserModel struct {

@ -15,7 +15,7 @@
package relation package relation
import ( import (
"github.com/openimsdk/tools/utils" "github.com/openimsdk/tools/errs"
"go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo"
) )
@ -31,5 +31,5 @@ type GroupSimpleUserID struct {
} }
func IsNotFound(err error) bool { func IsNotFound(err error) bool {
return utils.Unwrap(err) == mongo.ErrNoDocuments return errs.Unwrap(err) == mongo.ErrNoDocuments
} }

@ -15,12 +15,12 @@
package discoveryregister package discoveryregister
import ( import (
"github.com/openimsdk/tools/discovery"
"os" "os"
"testing" "testing"
"github.com/openimsdk/open-im-server/v3/pkg/common/config" "github.com/openimsdk/open-im-server/v3/pkg/common/config"
"github.com/openimsdk/tools/discoveryregistry"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
@ -57,7 +57,7 @@ func TestNewDiscoveryRegister(t *testing.T) {
} else { } else {
assert.NoError(t, err) assert.NoError(t, err)
if test.expectedResult { if test.expectedResult {
assert.Implements(t, (*discoveryregistry.SvcDiscoveryRegistry)(nil), client) assert.Implements(t, (*discovery.SvcDiscoveryRegistry)(nil), client)
} else { } else {
assert.Nil(t, client) assert.Nil(t, client)
} }

Loading…
Cancel
Save