diff --git a/cmd/gordon_main.go b/cmd/gordon_main.go index 3ad04ebe2..d2d9393d4 100644 --- a/cmd/gordon_main.go +++ b/cmd/gordon_main.go @@ -16,11 +16,11 @@ package main import ( "encoding/json" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/network" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/test" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/network" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/test" "time" ) diff --git a/cmd/main.go b/cmd/main.go index cd0660d6b..7e555866e 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -16,7 +16,7 @@ package main import ( "fmt" - "open_im_sdk/test" + "github.com/openimsdk/openim-sdk-core/v3/test" "time" ) diff --git a/cmd/press_open_im.go b/cmd/press_open_im.go index cb75a2910..ab681d8d5 100644 --- a/cmd/press_open_im.go +++ b/cmd/press_open_im.go @@ -16,8 +16,8 @@ package main import ( "flag" - "open_im_sdk/pkg/log" - "open_im_sdk/test" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/test" ) func main() { diff --git a/cmd/reliability_open_im.go b/cmd/reliability_open_im.go index febf1f8a1..5af5bd11c 100644 --- a/cmd/reliability_open_im.go +++ b/cmd/reliability_open_im.go @@ -16,8 +16,8 @@ package main import ( "flag" - "open_im_sdk/pkg/log" - "open_im_sdk/test" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/test" ) func main() { diff --git a/cmd/sk_main.go b/cmd/sk_main.go index 2fa204b74..99145146d 100644 --- a/cmd/sk_main.go +++ b/cmd/sk_main.go @@ -15,10 +15,10 @@ package main import ( - "open_im_sdk/pkg/db" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/test" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/test" "time" ) diff --git a/go.mod b/go.mod index 90781fba8..7d0d22749 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module open_im_sdk +module github.com/openimsdk/openim-sdk-core/v3 go 1.18 diff --git a/internal/business/business.go b/internal/business/business.go index 09bc787ff..8ac3b10cc 100644 --- a/internal/business/business.go +++ b/internal/business/business.go @@ -16,10 +16,10 @@ package business import ( "context" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/business/open_im_sdk_business.go b/internal/business/open_im_sdk_business.go index 4af14cea8..c0a34beb7 100644 --- a/internal/business/open_im_sdk_business.go +++ b/internal/business/open_im_sdk_business.go @@ -15,7 +15,7 @@ package business import ( - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" ) func (w *Business) SetListener(callback open_im_sdk_callback.OnCustomBusinessListener) { diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 9ca99c395..617e075c6 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -16,10 +16,10 @@ package cache import ( "context" - "open_im_sdk/internal/friend" - "open_im_sdk/internal/user" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/internal/friend" + "github.com/openimsdk/openim-sdk-core/v3/internal/user" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" "sync" userPb "github.com/OpenIMSDK/protocol/user" diff --git a/internal/common/common.go b/internal/common/common.go index cf4f3ff53..17da2935d 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -15,7 +15,7 @@ package common import ( - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/protocol/sdkws" "github.com/golang/protobuf/proto" diff --git a/internal/conversation_msg/conversation.go b/internal/conversation_msg/conversation.go index 04833b507..03e5e349c 100644 --- a/internal/conversation_msg/conversation.go +++ b/internal/conversation_msg/conversation.go @@ -17,16 +17,16 @@ package conversation_msg import ( "context" "errors" - _ "open_im_sdk/internal/common" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - sdk "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + _ "github.com/openimsdk/openim-sdk-core/v3/internal/common" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + sdk "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "sort" "strings" "time" diff --git a/internal/conversation_msg/conversation_msg.go b/internal/conversation_msg/conversation_msg.go index 87c29167c..04c41925c 100644 --- a/internal/conversation_msg/conversation_msg.go +++ b/internal/conversation_msg/conversation_msg.go @@ -18,27 +18,27 @@ import ( "context" "encoding/json" "errors" - "open_im_sdk/internal/business" - "open_im_sdk/internal/cache" - "open_im_sdk/internal/file" - "open_im_sdk/internal/friend" - "open_im_sdk/internal/full" - "open_im_sdk/internal/group" - "open_im_sdk/internal/interaction" - "open_im_sdk/internal/user" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" - sdk "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/internal/business" + "github.com/openimsdk/openim-sdk-core/v3/internal/cache" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/internal/friend" + "github.com/openimsdk/openim-sdk-core/v3/internal/full" + "github.com/openimsdk/openim-sdk-core/v3/internal/group" + "github.com/openimsdk/openim-sdk-core/v3/internal/interaction" + "github.com/openimsdk/openim-sdk-core/v3/internal/user" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + sdk "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" "github.com/OpenIMSDK/tools/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "sort" "time" diff --git a/internal/conversation_msg/conversation_notification.go b/internal/conversation_msg/conversation_notification.go index e313dc8d8..edae1c3e1 100644 --- a/internal/conversation_msg/conversation_notification.go +++ b/internal/conversation_msg/conversation_notification.go @@ -17,11 +17,11 @@ package conversation_msg import ( "context" "encoding/json" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "time" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/conversation_msg/convert.go b/internal/conversation_msg/convert.go index 8f877f15f..535924086 100644 --- a/internal/conversation_msg/convert.go +++ b/internal/conversation_msg/convert.go @@ -15,7 +15,7 @@ package conversation_msg import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" pbConversation "github.com/OpenIMSDK/protocol/conversation" ) diff --git a/internal/conversation_msg/create_message.go b/internal/conversation_msg/create_message.go index 6552bf90a..89fe4cf7b 100644 --- a/internal/conversation_msg/create_message.go +++ b/internal/conversation_msg/create_message.go @@ -17,11 +17,11 @@ package conversation_msg import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "os" "path/filepath" "strings" diff --git a/internal/conversation_msg/delete.go b/internal/conversation_msg/delete.go index 9c36fb2d3..521badcf9 100644 --- a/internal/conversation_msg/delete.go +++ b/internal/conversation_msg/delete.go @@ -16,13 +16,13 @@ package conversation_msg import ( "context" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" pbMsg "github.com/OpenIMSDK/protocol/msg" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/conversation_msg/image.go b/internal/conversation_msg/image.go index b0179f82f..4f87bb6f9 100644 --- a/internal/conversation_msg/image.go +++ b/internal/conversation_msg/image.go @@ -2,6 +2,7 @@ package conversation_msg import ( "github.com/OpenIMSDK/tools/errs" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" _ "golang.org/x/image/bmp" _ "golang.org/x/image/tiff" _ "golang.org/x/image/webp" @@ -9,7 +10,6 @@ import ( _ "image/gif" _ "image/jpeg" _ "image/png" - "open_im_sdk/sdk_struct" "os" ) diff --git a/internal/conversation_msg/message_check.go b/internal/conversation_msg/message_check.go index a89ce83ee..40128b43a 100644 --- a/internal/conversation_msg/message_check.go +++ b/internal/conversation_msg/message_check.go @@ -17,10 +17,10 @@ package conversation_msg import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - sdk "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + sdk "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/tools/log" diff --git a/internal/conversation_msg/message_controller.go b/internal/conversation_msg/message_controller.go index 150915204..251ace913 100644 --- a/internal/conversation_msg/message_controller.go +++ b/internal/conversation_msg/message_controller.go @@ -16,11 +16,11 @@ package conversation_msg import ( "context" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" diff --git a/internal/conversation_msg/progress.go b/internal/conversation_msg/progress.go index 70bd2e846..a7bd72431 100644 --- a/internal/conversation_msg/progress.go +++ b/internal/conversation_msg/progress.go @@ -17,9 +17,9 @@ package conversation_msg import ( "context" "encoding/json" - "open_im_sdk/internal/file" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "github.com/OpenIMSDK/tools/log" ) diff --git a/internal/conversation_msg/read_drawing.go b/internal/conversation_msg/read_drawing.go index 5803fa986..a15bfb545 100644 --- a/internal/conversation_msg/read_drawing.go +++ b/internal/conversation_msg/read_drawing.go @@ -17,12 +17,12 @@ package conversation_msg import ( "context" "errors" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" pbMsg "github.com/OpenIMSDK/protocol/msg" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/conversation_msg/revoke.go b/internal/conversation_msg/revoke.go index 0def4c915..b286572d4 100644 --- a/internal/conversation_msg/revoke.go +++ b/internal/conversation_msg/revoke.go @@ -17,12 +17,12 @@ package conversation_msg import ( "context" "errors" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" pbMsg "github.com/OpenIMSDK/protocol/msg" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/conversation_msg/sdk.go b/internal/conversation_msg/sdk.go index 3e414ab13..c18fcc08f 100644 --- a/internal/conversation_msg/sdk.go +++ b/internal/conversation_msg/sdk.go @@ -18,19 +18,19 @@ import ( "bytes" "context" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/content_type" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "net/url" - "open_im_sdk/internal/file" - "open_im_sdk/internal/util" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/content_type" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" "os" "path/filepath" "sort" diff --git a/internal/conversation_msg/sync.go b/internal/conversation_msg/sync.go index 2c1d3ceaa..c3cdb75ea 100644 --- a/internal/conversation_msg/sync.go +++ b/internal/conversation_msg/sync.go @@ -16,10 +16,10 @@ package conversation_msg import ( "context" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" "time" "github.com/OpenIMSDK/tools/errs" diff --git a/internal/file/file_js.go b/internal/file/file_js.go index 5621b9744..e0d64bef1 100644 --- a/internal/file/file_js.go +++ b/internal/file/file_js.go @@ -19,8 +19,8 @@ package file import ( "errors" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" "io" - "open_im_sdk/wasm/exec" "syscall/js" ) diff --git a/internal/file/upload.go b/internal/file/upload.go index d03e1b2a4..da50b4c1a 100644 --- a/internal/file/upload.go +++ b/internal/file/upload.go @@ -21,13 +21,13 @@ import ( "encoding/hex" "errors" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "io" "net/http" "net/url" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" "strings" "sync" "sync/atomic" diff --git a/internal/file/upload_test.go b/internal/file/upload_test.go index 3bca01ece..4a990215c 100644 --- a/internal/file/upload_test.go +++ b/internal/file/upload_test.go @@ -16,9 +16,9 @@ package file import ( "context" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/db" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "path/filepath" "testing" "time" diff --git a/internal/friend/conversion.go b/internal/friend/conversion.go index bb0dd6d7a..ddd94f4a2 100644 --- a/internal/friend/conversion.go +++ b/internal/friend/conversion.go @@ -15,7 +15,7 @@ package friend import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "github.com/OpenIMSDK/protocol/sdkws" ) diff --git a/internal/friend/friend.go b/internal/friend/friend.go index d4f211452..43add6fe0 100644 --- a/internal/friend/friend.go +++ b/internal/friend/friend.go @@ -18,14 +18,14 @@ import ( "context" "errors" "fmt" - "open_im_sdk/internal/user" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/syncer" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/internal/user" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" diff --git a/internal/friend/sdk.go b/internal/friend/sdk.go index 35d2efa2f..5682f2e13 100644 --- a/internal/friend/sdk.go +++ b/internal/friend/sdk.go @@ -16,12 +16,12 @@ package friend import ( "context" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - sdk "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + sdk "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" "github.com/OpenIMSDK/protocol/friend" "github.com/OpenIMSDK/tools/log" diff --git a/internal/friend/sync.go b/internal/friend/sync.go index b8aec00a8..87a009af0 100644 --- a/internal/friend/sync.go +++ b/internal/friend/sync.go @@ -16,9 +16,9 @@ package friend import ( "context" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" "github.com/OpenIMSDK/protocol/friend" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/full/full.go b/internal/full/full.go index d22f5c5da..a6f9d7f51 100644 --- a/internal/full/full.go +++ b/internal/full/full.go @@ -17,14 +17,14 @@ package full import ( "context" "fmt" - "open_im_sdk/internal/cache" - "open_im_sdk/internal/friend" - "open_im_sdk/internal/group" - "open_im_sdk/internal/user" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/cache" + "github.com/openimsdk/openim-sdk-core/v3/internal/friend" + "github.com/openimsdk/openim-sdk-core/v3/internal/group" + "github.com/openimsdk/openim-sdk-core/v3/internal/user" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" ) type Full struct { diff --git a/internal/full/full_model.go b/internal/full/full_model.go index 0a16cbe6f..73e65cc46 100644 --- a/internal/full/full_model.go +++ b/internal/full/full_model.go @@ -16,7 +16,7 @@ package full import ( "context" - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" ) func (u *Full) GetGroupInfoByGroupID(ctx context.Context, groupID string) (*model_struct.LocalGroup, error) { diff --git a/internal/full/open_im_sdk_full.go b/internal/full/open_im_sdk_full.go index 85445f0b0..b0f79deb0 100644 --- a/internal/full/open_im_sdk_full.go +++ b/internal/full/open_im_sdk_full.go @@ -18,10 +18,10 @@ import ( "context" "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - api "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + api "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" ) func (u *Full) GetUsersInfo(ctx context.Context, userIDs []string) ([]*api.FullUserInfo, error) { diff --git a/internal/group/conversion.go b/internal/group/conversion.go index 47ba7738f..2bd851d89 100644 --- a/internal/group/conversion.go +++ b/internal/group/conversion.go @@ -15,7 +15,7 @@ package group import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "github.com/OpenIMSDK/protocol/sdkws" ) diff --git a/internal/group/group.go b/internal/group/group.go index 2eb893b7f..7c882d503 100644 --- a/internal/group/group.go +++ b/internal/group/group.go @@ -20,15 +20,15 @@ import ( "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" utils2 "github.com/OpenIMSDK/tools/utils" - "open_im_sdk/internal/util" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/syncer" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func NewGroup(loginUserID string, db db_interface.DataBase, diff --git a/internal/group/notification.go b/internal/group/notification.go index 81efe0e63..3270b0fb9 100644 --- a/internal/group/notification.go +++ b/internal/group/notification.go @@ -19,8 +19,8 @@ import ( "encoding/json" "errors" "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" diff --git a/internal/group/sdk.go b/internal/group/sdk.go index 46e7eaeaa..97c856e18 100644 --- a/internal/group/sdk.go +++ b/internal/group/sdk.go @@ -16,11 +16,11 @@ package group import ( "context" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" "time" "github.com/OpenIMSDK/tools/log" diff --git a/internal/group/sync.go b/internal/group/sync.go index b6a5c0989..a1bd1a556 100644 --- a/internal/group/sync.go +++ b/internal/group/sync.go @@ -24,10 +24,10 @@ import ( "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/tools/log" utils2 "github.com/OpenIMSDK/tools/utils" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "sync" ) diff --git a/internal/interaction/compressor.go b/internal/interaction/compressor.go index a21e93262..10414d2cf 100644 --- a/internal/interaction/compressor.go +++ b/internal/interaction/compressor.go @@ -17,8 +17,8 @@ package interaction import ( "bytes" "compress/gzip" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "io" - "open_im_sdk/pkg/utils" ) type Compressor interface { diff --git a/internal/interaction/encoder.go b/internal/interaction/encoder.go index e220ae107..2052b8012 100644 --- a/internal/interaction/encoder.go +++ b/internal/interaction/encoder.go @@ -17,7 +17,7 @@ package interaction import ( "bytes" "encoding/gob" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type Encoder interface { diff --git a/internal/interaction/long_conn_mgr.go b/internal/interaction/long_conn_mgr.go index 7808d77c2..08dac075b 100644 --- a/internal/interaction/long_conn_mgr.go +++ b/internal/interaction/long_conn_mgr.go @@ -19,14 +19,14 @@ import ( "encoding/json" "errors" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "io" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" "runtime" "strconv" "strings" diff --git a/internal/interaction/msg_sync.go b/internal/interaction/msg_sync.go index 9a8ae5eb2..6b5f1c1d9 100644 --- a/internal/interaction/msg_sync.go +++ b/internal/interaction/msg_sync.go @@ -16,10 +16,10 @@ package interaction import ( "context" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "strings" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/internal/interaction/ws_resp_asyn.go b/internal/interaction/ws_resp_asyn.go index de42f5257..d6018f5e5 100644 --- a/internal/interaction/ws_resp_asyn.go +++ b/internal/interaction/ws_resp_asyn.go @@ -17,7 +17,7 @@ package interaction import ( "context" "errors" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "sync" "time" diff --git a/internal/login/init_login.go b/internal/login/init_login.go index b93be8175..cf76ff466 100644 --- a/internal/login/init_login.go +++ b/internal/login/init_login.go @@ -17,25 +17,25 @@ package login import ( "context" "fmt" - "open_im_sdk/internal/business" - "open_im_sdk/internal/cache" - conv "open_im_sdk/internal/conversation_msg" - "open_im_sdk/internal/file" - "open_im_sdk/internal/friend" - "open_im_sdk/internal/full" - "open_im_sdk/internal/group" - "open_im_sdk/internal/interaction" - "open_im_sdk/internal/third" - "open_im_sdk/internal/user" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/business" + "github.com/openimsdk/openim-sdk-core/v3/internal/cache" + conv "github.com/openimsdk/openim-sdk-core/v3/internal/conversation_msg" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/internal/friend" + "github.com/openimsdk/openim-sdk-core/v3/internal/full" + "github.com/openimsdk/openim-sdk-core/v3/internal/group" + "github.com/openimsdk/openim-sdk-core/v3/internal/interaction" + "github.com/openimsdk/openim-sdk-core/v3/internal/third" + "github.com/openimsdk/openim-sdk-core/v3/internal/user" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "sync" "time" diff --git a/internal/third/push.go b/internal/third/push.go index cd55b8051..5317e4cf9 100644 --- a/internal/third/push.go +++ b/internal/third/push.go @@ -15,11 +15,11 @@ package third import ( - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" ) type Push struct { diff --git a/internal/user/convert.go b/internal/user/convert.go index b331a6b43..b059ab41a 100644 --- a/internal/user/convert.go +++ b/internal/user/convert.go @@ -15,7 +15,7 @@ package user import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "github.com/OpenIMSDK/protocol/sdkws" ) diff --git a/internal/user/sdk.go b/internal/user/sdk.go index 7f5e85519..b7d83489c 100644 --- a/internal/user/sdk.go +++ b/internal/user/sdk.go @@ -17,8 +17,8 @@ package user import ( "context" userPb "github.com/OpenIMSDK/protocol/user" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "github.com/OpenIMSDK/protocol/sdkws" ) diff --git a/internal/user/sync.go b/internal/user/sync.go index 02f7fda24..6ab6d5c03 100644 --- a/internal/user/sync.go +++ b/internal/user/sync.go @@ -17,8 +17,8 @@ package user import ( "context" userPb "github.com/OpenIMSDK/protocol/user" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/tools/errs" "github.com/OpenIMSDK/tools/log" diff --git a/internal/user/user.go b/internal/user/user.go index 656e3a017..ffcd5241c 100644 --- a/internal/user/user.go +++ b/internal/user/user.go @@ -17,11 +17,11 @@ package user import ( "context" "fmt" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/db/db_interface" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/db_interface" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" authPb "github.com/OpenIMSDK/protocol/auth" "github.com/OpenIMSDK/protocol/sdkws" @@ -29,10 +29,10 @@ import ( "github.com/OpenIMSDK/tools/log" PbConstant "github.com/OpenIMSDK/protocol/constant" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) // User is a struct that represents a user in the system. diff --git a/internal/util/notice.go b/internal/util/notice.go index b70628385..085a4b9c7 100644 --- a/internal/util/notice.go +++ b/internal/util/notice.go @@ -17,7 +17,7 @@ package util import ( "context" "encoding/json" - "open_im_sdk/pkg/syncer" + "github.com/openimsdk/openim-sdk-core/v3/pkg/syncer" ) func NoticeChange[T any](fn func(data string)) func(ctx context.Context, state int, value T) error { diff --git a/internal/util/post.go b/internal/util/post.go index 87db9b9b4..02b30e988 100644 --- a/internal/util/post.go +++ b/internal/util/post.go @@ -19,10 +19,10 @@ import ( "context" "encoding/json" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" "io" "net/http" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/sdkerrs" "time" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/msgtest/config.go b/msgtest/config.go index d767528da..e02295c70 100644 --- a/msgtest/config.go +++ b/msgtest/config.go @@ -2,8 +2,8 @@ package msgtest import ( "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) // config here diff --git a/msgtest/message_test.go b/msgtest/message_test.go index 0eef846dd..5ef1a2e78 100644 --- a/msgtest/message_test.go +++ b/msgtest/message_test.go @@ -3,10 +3,10 @@ package msgtest import ( "context" "github.com/OpenIMSDK/tools/log" - "open_im_sdk/msgtest/module" - "open_im_sdk/msgtest/sdk_user_simulator" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/msgtest/module" + "github.com/openimsdk/openim-sdk-core/v3/msgtest/sdk_user_simulator" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "testing" ) diff --git a/msgtest/module/api_msg_sender.go b/msgtest/module/api_msg_sender.go index 1c9ba41f3..e2f0465f3 100644 --- a/msgtest/module/api_msg_sender.go +++ b/msgtest/module/api_msg_sender.go @@ -2,9 +2,9 @@ package module import ( "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" "github.com/OpenIMSDK/protocol/msg" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/msgtest/module/friend_manager.go b/msgtest/module/friend_manager.go index 65b17f80b..4f63b609b 100644 --- a/msgtest/module/friend_manager.go +++ b/msgtest/module/friend_manager.go @@ -1,7 +1,7 @@ package module import ( - "open_im_sdk/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" "github.com/OpenIMSDK/protocol/friend" ) diff --git a/msgtest/module/group_manager.go b/msgtest/module/group_manager.go index aa011bc43..22cf6bfcd 100644 --- a/msgtest/module/group_manager.go +++ b/msgtest/module/group_manager.go @@ -3,7 +3,7 @@ package module import ( "context" "fmt" - "open_im_sdk/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" "time" "github.com/OpenIMSDK/protocol/group" diff --git a/msgtest/module/manager.go b/msgtest/module/manager.go index 566ddeb0e..4c18455cf 100644 --- a/msgtest/module/manager.go +++ b/msgtest/module/manager.go @@ -9,12 +9,12 @@ import ( "github.com/OpenIMSDK/protocol/msg" "github.com/OpenIMSDK/tools/log" "github.com/OpenIMSDK/tools/mcontext" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "io" "net/http" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/utils" ) const ( diff --git a/msgtest/module/msg_sender.go b/msgtest/module/msg_sender.go index 2dda88f83..7460b5e84 100644 --- a/msgtest/module/msg_sender.go +++ b/msgtest/module/msg_sender.go @@ -3,13 +3,13 @@ package module import ( "context" "fmt" - "open_im_sdk/internal/interaction" - "open_im_sdk/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/internal/interaction" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "time" "github.com/OpenIMSDK/protocol/sdkws" @@ -37,7 +37,6 @@ func WithRecvPushMsgCallback(callback func(msg *sdkws.MsgData)) func(core *SendM } } - func newIMconfig(platformID int32, apiAddr, wsAddr string) sdk_struct.IMConfig { return sdk_struct.IMConfig{ PlatformID: platformID, @@ -146,7 +145,6 @@ func (b *SendMsgUser) sendMsg(ctx context.Context, userID, groupID string, index return nil } - func (b *SendMsgUser) recvPushMsg(ctx context.Context) { for { select { diff --git a/msgtest/module/user_manager.go b/msgtest/module/user_manager.go index 17debe867..2af08b957 100644 --- a/msgtest/module/user_manager.go +++ b/msgtest/module/user_manager.go @@ -2,7 +2,7 @@ package module import ( "fmt" - "open_im_sdk/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" "time" "github.com/OpenIMSDK/protocol/sdkws" @@ -38,8 +38,6 @@ func (t *TestUserManager) RegisterUsers(userIDs ...string) error { }, nil) } - func (t *TestUserManager) GetToken(userID string, platformID int32) (string, error) { return t.getToken(userID, platformID) } - diff --git a/msgtest/pressure_test.go b/msgtest/pressure_test.go index c4864d30c..835128c24 100644 --- a/msgtest/pressure_test.go +++ b/msgtest/pressure_test.go @@ -4,8 +4,8 @@ import ( "context" "flag" "fmt" - "open_im_sdk/msgtest/module" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/msgtest/module" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "sync" "testing" "time" diff --git a/msgtest/sdk_user_simulator/listener.go b/msgtest/sdk_user_simulator/listener.go index b3bf1bd29..a77260038 100644 --- a/msgtest/sdk_user_simulator/listener.go +++ b/msgtest/sdk_user_simulator/listener.go @@ -1,9 +1,9 @@ package sdk_user_simulator import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) type conversationCallBack struct { diff --git a/msgtest/sdk_user_simulator/user.go b/msgtest/sdk_user_simulator/user.go index 603273cff..e0c8a66b5 100644 --- a/msgtest/sdk_user_simulator/user.go +++ b/msgtest/sdk_user_simulator/user.go @@ -4,11 +4,11 @@ import ( "context" "fmt" "github.com/OpenIMSDK/tools/log" - "open_im_sdk/internal/login" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) var ( diff --git a/open_im_sdk/conversation_msg.go b/open_im_sdk/conversation_msg.go index 98c75fa04..7749aeaea 100644 --- a/open_im_sdk/conversation_msg.go +++ b/open_im_sdk/conversation_msg.go @@ -16,7 +16,7 @@ package open_im_sdk import ( "bytes" - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" ) func GetAllConversationList(callback open_im_sdk_callback.Base, operationID string) { diff --git a/open_im_sdk/file.go b/open_im_sdk/file.go index 55cb5a64d..ad7e9a7d5 100644 --- a/open_im_sdk/file.go +++ b/open_im_sdk/file.go @@ -15,8 +15,8 @@ package open_im_sdk import ( - "open_im_sdk/internal/file" - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" ) func UploadFile(callback open_im_sdk_callback.Base, operationID string, req string, progress open_im_sdk_callback.UploadFileCallback) { diff --git a/open_im_sdk/friend.go b/open_im_sdk/friend.go index ea22c35cb..028b8384b 100644 --- a/open_im_sdk/friend.go +++ b/open_im_sdk/friend.go @@ -14,7 +14,7 @@ package open_im_sdk -import "open_im_sdk/open_im_sdk_callback" +import "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" func GetSpecifiedFriendsInfo(callback open_im_sdk_callback.Base, operationID string, userIDList string) { call(callback, operationID, UserForSDK.Friend().GetSpecifiedFriendsInfo, userIDList) diff --git a/open_im_sdk/group.go b/open_im_sdk/group.go index c0d99b7dc..fba014420 100644 --- a/open_im_sdk/group.go +++ b/open_im_sdk/group.go @@ -14,7 +14,7 @@ package open_im_sdk -import "open_im_sdk/open_im_sdk_callback" +import "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" //funcation CreateGroup(callback open_im_sdk_callback.Base, operationID string, groupBaseInfo string, memberList string) { // call(callback, operationID, UserForSDK.Group().CreateGroup, groupBaseInfo, memberList) diff --git a/open_im_sdk/init_login.go b/open_im_sdk/init_login.go index a2cdf522e..8fab30763 100644 --- a/open_im_sdk/init_login.go +++ b/open_im_sdk/init_login.go @@ -18,11 +18,11 @@ import ( "context" "encoding/json" "fmt" - "open_im_sdk/internal/login" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/constant" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "strings" "github.com/OpenIMSDK/tools/log" diff --git a/open_im_sdk/listener.go b/open_im_sdk/listener.go index 60b98870e..4f4682868 100644 --- a/open_im_sdk/listener.go +++ b/open_im_sdk/listener.go @@ -15,8 +15,8 @@ package open_im_sdk import ( - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" ) func SetGroupListener(callback open_im_sdk_callback.OnGroupListener) { diff --git a/open_im_sdk/third.go b/open_im_sdk/third.go index 227488efc..42d26c6fe 100644 --- a/open_im_sdk/third.go +++ b/open_im_sdk/third.go @@ -15,7 +15,7 @@ package open_im_sdk import ( - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" ) func UpdateFcmToken(callback open_im_sdk_callback.Base, operationID, userIDList string) { diff --git a/open_im_sdk/user.go b/open_im_sdk/user.go index 0234a8055..3d721aa83 100644 --- a/open_im_sdk/user.go +++ b/open_im_sdk/user.go @@ -15,7 +15,7 @@ package open_im_sdk import ( - "open_im_sdk/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" ) func GetUsersInfo(callback open_im_sdk_callback.Base, operationID string, userIDs string) { diff --git a/open_im_sdk/userRelated.go b/open_im_sdk/userRelated.go index 8acf6b165..0d6a2e8ff 100644 --- a/open_im_sdk/userRelated.go +++ b/open_im_sdk/userRelated.go @@ -16,12 +16,12 @@ package open_im_sdk import ( "errors" - "open_im_sdk/internal/login" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "reflect" "runtime" "strings" diff --git a/open_im_sdk/util.go b/open_im_sdk/util.go index 1ca376266..44b4ef218 100644 --- a/open_im_sdk/util.go +++ b/open_im_sdk/util.go @@ -18,9 +18,9 @@ import ( "context" "encoding/json" "fmt" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" "reflect" "runtime" "runtime/debug" diff --git a/open_im_sdk_callback/callback_go_sdk.go b/open_im_sdk_callback/callback_go_sdk.go index 84f700204..3a8281e11 100644 --- a/open_im_sdk_callback/callback_go_sdk.go +++ b/open_im_sdk_callback/callback_go_sdk.go @@ -16,8 +16,8 @@ package open_im_sdk_callback import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/tools/log" ) diff --git a/pkg/ccontext/context.go b/pkg/ccontext/context.go index 320cf7475..26bd672ea 100644 --- a/pkg/ccontext/context.go +++ b/pkg/ccontext/context.go @@ -16,8 +16,8 @@ package ccontext import ( "context" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "github.com/OpenIMSDK/tools/mcontext" ) diff --git a/pkg/common/check.go b/pkg/common/check.go index 295337427..563186bce 100644 --- a/pkg/common/check.go +++ b/pkg/common/check.go @@ -18,11 +18,11 @@ import ( "encoding/json" "errors" "github.com/mitchellh/mapstructure" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdkerrs" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdkerrs" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "runtime" ) diff --git a/pkg/common/trigger_channel.go b/pkg/common/trigger_channel.go index 25ba601d3..e6702b2f1 100644 --- a/pkg/common/trigger_channel.go +++ b/pkg/common/trigger_channel.go @@ -17,9 +17,9 @@ package common import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "time" "github.com/OpenIMSDK/tools/log" diff --git a/pkg/db/admin_group_request_model.go b/pkg/db/admin_group_request_model.go index 0a85a7b0e..263123d6b 100644 --- a/pkg/db/admin_group_request_model.go +++ b/pkg/db/admin_group_request_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) InsertAdminGroupRequest(ctx context.Context, groupRequest *model_struct.LocalAdminGroupRequest) error { diff --git a/pkg/db/black_model.go b/pkg/db/black_model.go index 38b4c1449..363b78f6f 100644 --- a/pkg/db/black_model.go +++ b/pkg/db/black_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetBlackListDB(ctx context.Context) ([]*model_struct.LocalBlack, error) { diff --git a/pkg/db/chat_log_model.go b/pkg/db/chat_log_model.go index 49f92ea66..02b231a84 100644 --- a/pkg/db/chat_log_model.go +++ b/pkg/db/chat_log_model.go @@ -20,10 +20,10 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "gorm.io/gorm" ) diff --git a/pkg/db/chat_log_model_v3.go b/pkg/db/chat_log_model_v3.go index 2c75deb6c..bfdffa7b1 100644 --- a/pkg/db/chat_log_model_v3.go +++ b/pkg/db/chat_log_model_v3.go @@ -21,10 +21,10 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "github.com/OpenIMSDK/tools/log" ) diff --git a/pkg/db/chat_log_reaction_extension_model.go b/pkg/db/chat_log_reaction_extension_model.go index 47f9631a4..56a40654e 100644 --- a/pkg/db/chat_log_reaction_extension_model.go +++ b/pkg/db/chat_log_reaction_extension_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetMessageReactionExtension(ctx context.Context, msgID string) (result *model_struct.LocalChatLogReactionExtensions, err error) { diff --git a/pkg/db/conversation_model.go b/pkg/db/conversation_model.go index 19c8c0768..4b285da2c 100644 --- a/pkg/db/conversation_model.go +++ b/pkg/db/conversation_model.go @@ -20,9 +20,9 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/tools/errs" "github.com/OpenIMSDK/tools/log" diff --git a/pkg/db/conversation_unread_message_model.go b/pkg/db/conversation_unread_message_model.go index 2b2379513..33242ccbe 100644 --- a/pkg/db/conversation_unread_message_model.go +++ b/pkg/db/conversation_unread_message_model.go @@ -19,8 +19,8 @@ package db import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) BatchInsertConversationUnreadMessageList(ctx context.Context, messageList []*model_struct.LocalConversationUnreadMessage) error { diff --git a/pkg/db/db_init.go b/pkg/db/db_init.go index 612fa4a71..5184d0919 100644 --- a/pkg/db/db_init.go +++ b/pkg/db/db_init.go @@ -21,9 +21,9 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "path/filepath" "sync" "time" diff --git a/pkg/db/db_interface/databse.go b/pkg/db/db_interface/databse.go index 7f922f984..5cf13fdad 100644 --- a/pkg/db/db_interface/databse.go +++ b/pkg/db/db_interface/databse.go @@ -16,8 +16,8 @@ package db_interface import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) type GroupDatabase interface { diff --git a/pkg/db/db_js.go b/pkg/db/db_js.go index 2d5960dde..2ba2a041f 100644 --- a/pkg/db/db_js.go +++ b/pkg/db/db_js.go @@ -17,8 +17,8 @@ package db import ( "context" "errors" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb" ) var ErrType = errors.New("from javascript data type err") diff --git a/pkg/db/err_chat_log_model.go b/pkg/db/err_chat_log_model.go index 637a4bed7..47d39c876 100644 --- a/pkg/db/err_chat_log_model.go +++ b/pkg/db/err_chat_log_model.go @@ -19,9 +19,9 @@ package db import ( "context" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) initSuperLocalErrChatLog(ctx context.Context, groupID string) { diff --git a/pkg/db/friend_model.go b/pkg/db/friend_model.go index fcf218249..a5df860af 100644 --- a/pkg/db/friend_model.go +++ b/pkg/db/friend_model.go @@ -21,8 +21,8 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) InsertFriend(ctx context.Context, friend *model_struct.LocalFriend) error { diff --git a/pkg/db/friend_request_model.go b/pkg/db/friend_request_model.go index 4eeb6be51..a9620e012 100644 --- a/pkg/db/friend_request_model.go +++ b/pkg/db/friend_request_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) InsertFriendRequest(ctx context.Context, friendRequest *model_struct.LocalFriendRequest) error { diff --git a/pkg/db/group_member_model.go b/pkg/db/group_member_model.go index 600121200..245682863 100644 --- a/pkg/db/group_member_model.go +++ b/pkg/db/group_member_model.go @@ -21,10 +21,10 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetGroupMemberInfoByGroupIDUserID(ctx context.Context, groupID, userID string) (*model_struct.LocalGroupMember, error) { diff --git a/pkg/db/group_model.go b/pkg/db/group_model.go index eb1953476..bc2fe6651 100644 --- a/pkg/db/group_model.go +++ b/pkg/db/group_model.go @@ -21,8 +21,8 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "gorm.io/gorm" ) diff --git a/pkg/db/group_request_model.go b/pkg/db/group_request_model.go index df98cc38e..4e90b3e8d 100644 --- a/pkg/db/group_request_model.go +++ b/pkg/db/group_request_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) InsertGroupRequest(ctx context.Context, groupRequest *model_struct.LocalGroupRequest) error { diff --git a/pkg/db/notification_model.go b/pkg/db/notification_model.go index 481d67ffd..70fc13853 100644 --- a/pkg/db/notification_model.go +++ b/pkg/db/notification_model.go @@ -19,8 +19,8 @@ package db import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) SetNotificationSeq(ctx context.Context, conversationID string, seq int64) error { diff --git a/pkg/db/seq_data_model.go b/pkg/db/seq_data_model.go index bc999cbf2..2e3561184 100644 --- a/pkg/db/seq_data_model.go +++ b/pkg/db/seq_data_model.go @@ -19,8 +19,8 @@ package db import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetMinSeq(ctx context.Context, ID string) (uint32, error) { diff --git a/pkg/db/stranger_model.go b/pkg/db/stranger_model.go index b5fcd275c..b56b66707 100644 --- a/pkg/db/stranger_model.go +++ b/pkg/db/stranger_model.go @@ -20,9 +20,9 @@ package db import ( "context" "errors" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "gorm.io/gorm" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" ) func (d *DataBase) GetStrangerInfo(ctx context.Context, userIDs []string) ([]*model_struct.LocalStranger, error) { diff --git a/pkg/db/super_group_chat_log_model.go b/pkg/db/super_group_chat_log_model.go index 6a4d99393..667a8ac0b 100644 --- a/pkg/db/super_group_chat_log_model.go +++ b/pkg/db/super_group_chat_log_model.go @@ -21,11 +21,11 @@ import ( "context" "errors" "fmt" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "gorm.io/gorm" ) diff --git a/pkg/db/super_group_model.go b/pkg/db/super_group_model.go index 0ef0071bd..b7530a937 100644 --- a/pkg/db/super_group_model.go +++ b/pkg/db/super_group_model.go @@ -20,9 +20,9 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetJoinedSuperGroupList(ctx context.Context) ([]*model_struct.LocalGroup, error) { diff --git a/pkg/db/temp_cache_chat_log_model.go b/pkg/db/temp_cache_chat_log_model.go index c200e3271..b837b9651 100644 --- a/pkg/db/temp_cache_chat_log_model.go +++ b/pkg/db/temp_cache_chat_log_model.go @@ -19,8 +19,8 @@ package db import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) BatchInsertTempCacheMessageList(ctx context.Context, MessageList []*model_struct.TempCacheLocalChatLog) error { diff --git a/pkg/db/upload_model.go b/pkg/db/upload_model.go index 2724c440c..9b3cd36ee 100644 --- a/pkg/db/upload_model.go +++ b/pkg/db/upload_model.go @@ -19,7 +19,7 @@ package db import ( "context" - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" "time" "github.com/OpenIMSDK/tools/errs" diff --git a/pkg/db/user_model.go b/pkg/db/user_model.go index 57e191a9c..4e23cc7cf 100644 --- a/pkg/db/user_model.go +++ b/pkg/db/user_model.go @@ -20,8 +20,8 @@ package db import ( "context" "errors" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetLoginUser(ctx context.Context, userID string) (*model_struct.LocalUser, error) { diff --git a/pkg/db/work_moments_model.go b/pkg/db/work_moments_model.go index 9bad45729..ac7139e39 100644 --- a/pkg/db/work_moments_model.go +++ b/pkg/db/work_moments_model.go @@ -20,9 +20,9 @@ package db import ( "context" "errors" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "gorm.io/gorm" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" "time" ) diff --git a/pkg/db/working_group.go b/pkg/db/working_group.go index 1f4c95758..c4bf35658 100644 --- a/pkg/db/working_group.go +++ b/pkg/db/working_group.go @@ -19,9 +19,9 @@ package db import ( "context" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) func (d *DataBase) GetJoinedWorkingGroupIDList(ctx context.Context) ([]string, error) { diff --git a/pkg/log/file_line_hk.go b/pkg/log/file_line_hk.go index a14f49291..94ed0f5b0 100644 --- a/pkg/log/file_line_hk.go +++ b/pkg/log/file_line_hk.go @@ -7,8 +7,8 @@ package log import ( + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/sirupsen/logrus" - "open_im_sdk/pkg/utils" "runtime" "strings" ) diff --git a/pkg/network/http_client.go b/pkg/network/http_client.go index ef6bf4700..dfbb42848 100644 --- a/pkg/network/http_client.go +++ b/pkg/network/http_client.go @@ -20,9 +20,9 @@ import ( "errors" "net" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "io/ioutil" "net/http" - "open_im_sdk/pkg/utils" "time" ) diff --git a/pkg/network/new_http.go b/pkg/network/new_http.go index af4583ccb..aa68e233c 100644 --- a/pkg/network/new_http.go +++ b/pkg/network/new_http.go @@ -18,10 +18,10 @@ import ( "bytes" "encoding/json" "errors" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "io/ioutil" "net/http" "net/url" - "open_im_sdk/pkg/utils" "time" "unsafe" ) diff --git a/pkg/sdk_params_callback/conversation_msg_sdk_struct.go b/pkg/sdk_params_callback/conversation_msg_sdk_struct.go index c20686d8e..8f1b07c2e 100644 --- a/pkg/sdk_params_callback/conversation_msg_sdk_struct.go +++ b/pkg/sdk_params_callback/conversation_msg_sdk_struct.go @@ -15,10 +15,10 @@ package sdk_params_callback import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) // type GetAllConversationListParam null diff --git a/pkg/sdk_params_callback/friend_sdk_struct.go b/pkg/sdk_params_callback/friend_sdk_struct.go index 43b888096..c76322d5c 100644 --- a/pkg/sdk_params_callback/friend_sdk_struct.go +++ b/pkg/sdk_params_callback/friend_sdk_struct.go @@ -15,9 +15,9 @@ package sdk_params_callback import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" ) // 1 diff --git a/pkg/sdk_params_callback/group_sdk_struct.go b/pkg/sdk_params_callback/group_sdk_struct.go index ce822391b..3b5877ccd 100644 --- a/pkg/sdk_params_callback/group_sdk_struct.go +++ b/pkg/sdk_params_callback/group_sdk_struct.go @@ -15,9 +15,9 @@ package sdk_params_callback import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" ) type CreateGroupBaseInfoParam struct { diff --git a/pkg/sdk_params_callback/listener_callback.go b/pkg/sdk_params_callback/listener_callback.go index fbb7c8fdb..fca1c92ce 100644 --- a/pkg/sdk_params_callback/listener_callback.go +++ b/pkg/sdk_params_callback/listener_callback.go @@ -15,7 +15,7 @@ package sdk_params_callback import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" ) // //////////////////////////////friend//////////////////////////////////// diff --git a/pkg/sdk_params_callback/third_sdk_struct.go b/pkg/sdk_params_callback/third_sdk_struct.go index b14e6f43a..7abf9a64c 100644 --- a/pkg/sdk_params_callback/third_sdk_struct.go +++ b/pkg/sdk_params_callback/third_sdk_struct.go @@ -14,7 +14,7 @@ package sdk_params_callback -import "open_im_sdk/pkg/constant" +import "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" const UpdateFcmTokenCallback = constant.SuccessCallbackDefault const SetAppBadgeCallback = constant.SuccessCallbackDefault diff --git a/pkg/sdk_params_callback/user_sdk_struct.go b/pkg/sdk_params_callback/user_sdk_struct.go index 945237802..3fff3372f 100644 --- a/pkg/sdk_params_callback/user_sdk_struct.go +++ b/pkg/sdk_params_callback/user_sdk_struct.go @@ -15,16 +15,16 @@ package sdk_params_callback import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" ) -//other user +// other user type GetUsersInfoParam []string type GetUsersInfoCallback []server_api_params.FullUserInfo -//type GetSelfUserInfoParam string +// type GetSelfUserInfoParam string type GetSelfUserInfoCallback *model_struct.LocalUser type SetSelfUserInfoParam server_api_params.ApiUserInfo diff --git a/pkg/server_api_params/public_struct.go b/pkg/server_api_params/public_struct.go index b9beaba93..ca8f799cb 100644 --- a/pkg/server_api_params/public_struct.go +++ b/pkg/server_api_params/public_struct.go @@ -15,7 +15,7 @@ package server_api_params import ( - "open_im_sdk/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" ) type ApiUserInfo struct { diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index d72a5f1fc..a25d3bc5c 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -18,9 +18,9 @@ import ( "crypto/md5" "encoding/hex" "encoding/json" - "open_im_sdk/pkg/constant" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" "sort" "github.com/golang/protobuf/jsonpb" diff --git a/test/account.go b/test/account.go index cd8f57f3c..55f38ddab 100644 --- a/test/account.go +++ b/test/account.go @@ -17,15 +17,15 @@ package test import ( "context" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/internal/util" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/network" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "net" - "open_im_sdk/internal/util" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/network" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" "os" "strconv" "sync" diff --git a/test/config.go b/test/config.go index e4f551d15..eeed3e6c4 100644 --- a/test/config.go +++ b/test/config.go @@ -15,7 +15,7 @@ package test import ( - "open_im_sdk/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" "sync" ) diff --git a/test/login.go b/test/login.go index f6c43f8e2..056872d8b 100644 --- a/test/login.go +++ b/test/login.go @@ -17,11 +17,11 @@ package test import ( "encoding/json" "fmt" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "time" ) diff --git a/test/reliability.go b/test/reliability.go index 395602f78..8b4d8a708 100644 --- a/test/reliability.go +++ b/test/reliability.go @@ -16,10 +16,10 @@ package test import ( "fmt" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "io/ioutil" "math/rand" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" "os" "runtime" "strconv" diff --git a/test/sendMessage.go b/test/sendMessage.go index 1d156daf7..ae058f0da 100644 --- a/test/sendMessage.go +++ b/test/sendMessage.go @@ -15,14 +15,14 @@ package test import ( - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/protocol/sdkws" // "open_im_sdk/internal/interaction" - "open_im_sdk/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" ) func init() { diff --git a/test/t_conversation_msg.go b/test/t_conversation_msg.go index 68e92c5b6..17a391405 100644 --- a/test/t_conversation_msg.go +++ b/test/t_conversation_msg.go @@ -17,13 +17,13 @@ package test import ( "encoding/json" "fmt" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "sync" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/test/t_friend_sdk.go b/test/t_friend_sdk.go index 0b3381c93..37dba3667 100644 --- a/test/t_friend_sdk.go +++ b/test/t_friend_sdk.go @@ -17,14 +17,14 @@ package test import ( "encoding/json" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" X "log" - "open_im_sdk/internal/login" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/ccontext" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" "os" "runtime" "time" diff --git a/test/t_group_sdk.go b/test/t_group_sdk.go index b0661ea31..c082c1ab8 100644 --- a/test/t_group_sdk.go +++ b/test/t_group_sdk.go @@ -15,15 +15,15 @@ package test import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" // "encoding/json" "fmt" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" //"open_im_sdk/internal/open_im_sdk" //"open_im_sdk/pkg/utils" // "open_im_sdk/internal/common" diff --git a/test/t_signaling.go b/test/t_signaling.go index ea2e45d58..b8c99dc95 100644 --- a/test/t_signaling.go +++ b/test/t_signaling.go @@ -15,7 +15,7 @@ package test import ( - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "github.com/OpenIMSDK/tools/log" "golang.org/x/net/context" diff --git a/test/work_group_create.go b/test/work_group_create.go index 11a1d1395..f263f0b17 100644 --- a/test/work_group_create.go +++ b/test/work_group_create.go @@ -16,11 +16,11 @@ package test import ( "encoding/json" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/network" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/network" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "sync" "time" diff --git a/testv2/config.go b/testv2/config.go index f9707c9e5..7d71620b8 100644 --- a/testv2/config.go +++ b/testv2/config.go @@ -16,7 +16,7 @@ package testv2 import ( "github.com/OpenIMSDK/protocol/constant" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) const ( diff --git a/testv2/conversation_test.go b/testv2/conversation_test.go index 1f7d9709a..1ffbdf09d 100644 --- a/testv2/conversation_test.go +++ b/testv2/conversation_test.go @@ -16,9 +16,9 @@ package testv2 import ( "context" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/sdk_params_callback" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "testing" "github.com/OpenIMSDK/protocol/sdkws" diff --git a/testv2/create_msg_test.go b/testv2/create_msg_test.go index 3b935b300..0a8ebcda5 100644 --- a/testv2/create_msg_test.go +++ b/testv2/create_msg_test.go @@ -15,8 +15,8 @@ package testv2 import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "testing" ) diff --git a/testv2/friend_test.go b/testv2/friend_test.go index 5bb152a76..fbb518961 100644 --- a/testv2/friend_test.go +++ b/testv2/friend_test.go @@ -15,8 +15,8 @@ package testv2 import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" "testing" "time" diff --git a/testv2/group_test.go b/testv2/group_test.go index 9a34f043a..776120ba8 100644 --- a/testv2/group_test.go +++ b/testv2/group_test.go @@ -18,9 +18,9 @@ import ( "github.com/OpenIMSDK/protocol/group" "github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/protocol/wrapperspb" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/sdk_params_callback" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/sdk_params_callback" "testing" ) diff --git a/testv2/init.go b/testv2/init.go index 15a81da3b..72465adcb 100644 --- a/testv2/init.go +++ b/testv2/init.go @@ -20,11 +20,11 @@ import ( "encoding/json" "fmt" "github.com/OpenIMSDK/protocol/constant" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/ccontext" "io" "math/rand" "net/http" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/ccontext" "strconv" "time" diff --git a/testv2/sync_test.go b/testv2/sync_test.go index a495a9c1c..c0b3663f8 100644 --- a/testv2/sync_test.go +++ b/testv2/sync_test.go @@ -15,7 +15,7 @@ package testv2 import ( - "open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" "testing" ) diff --git a/testv2/user_test.go b/testv2/user_test.go index 3c37e1ce4..32326213a 100644 --- a/testv2/user_test.go +++ b/testv2/user_test.go @@ -15,7 +15,7 @@ package testv2 import ( - "open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" "testing" "time" diff --git a/wasm/cmd/main.go b/wasm/cmd/main.go index 7e758dc4a..70c9d1928 100644 --- a/wasm/cmd/main.go +++ b/wasm/cmd/main.go @@ -19,8 +19,8 @@ package main import ( "fmt" - "open_im_sdk/pkg/log" - "open_im_sdk/wasm/wasm_wrapper" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/wasm/wasm_wrapper" "runtime" "runtime/debug" diff --git a/wasm/event_listener/callback_writer.go b/wasm/event_listener/callback_writer.go index 1d6f6c1e8..dddcbbbee 100644 --- a/wasm/event_listener/callback_writer.go +++ b/wasm/event_listener/callback_writer.go @@ -18,7 +18,7 @@ package event_listener import ( - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "syscall/js" ) diff --git a/wasm/event_listener/caller.go b/wasm/event_listener/caller.go index ede9ec6fe..8615fc19e 100644 --- a/wasm/event_listener/caller.go +++ b/wasm/event_listener/caller.go @@ -20,9 +20,9 @@ package event_listener import ( "bytes" "errors" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" "reflect" "strconv" "strings" diff --git a/wasm/event_listener/listener.go b/wasm/event_listener/listener.go index dc247a788..07fb7eda4 100644 --- a/wasm/event_listener/listener.go +++ b/wasm/event_listener/listener.go @@ -18,10 +18,10 @@ package event_listener import ( - "open_im_sdk/internal/file" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/internal/file" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "syscall/js" ) diff --git a/wasm/exec/executor.go b/wasm/exec/executor.go index e0a7b13cc..5e0534eb9 100644 --- a/wasm/exec/executor.go +++ b/wasm/exec/executor.go @@ -20,8 +20,8 @@ package exec import ( "errors" "github.com/OpenIMSDK/tools/errs" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "runtime" "syscall/js" "time" diff --git a/wasm/indexdb/black_model.go b/wasm/indexdb/black_model.go index 025528e5b..007692d94 100644 --- a/wasm/indexdb/black_model.go +++ b/wasm/indexdb/black_model.go @@ -19,10 +19,10 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type Black struct { diff --git a/wasm/indexdb/cache_message.go b/wasm/indexdb/cache_message.go index ffe95f578..223a6fe00 100644 --- a/wasm/indexdb/cache_message.go +++ b/wasm/indexdb/cache_message.go @@ -19,12 +19,12 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type LocalCacheMessage struct { diff --git a/wasm/indexdb/chat_log_model.go b/wasm/indexdb/chat_log_model.go index 9332b2a4f..307209f46 100644 --- a/wasm/indexdb/chat_log_model.go +++ b/wasm/indexdb/chat_log_model.go @@ -19,10 +19,10 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type LocalChatLogs struct { diff --git a/wasm/indexdb/chat_log_reaction_extension_model.go b/wasm/indexdb/chat_log_reaction_extension_model.go index 48e89a81c..d1176409c 100644 --- a/wasm/indexdb/chat_log_reaction_extension_model.go +++ b/wasm/indexdb/chat_log_reaction_extension_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type LocalChatLogReactionExtensions struct { diff --git a/wasm/indexdb/conversation_model.go b/wasm/indexdb/conversation_model.go index 966310b46..e2d295ee2 100644 --- a/wasm/indexdb/conversation_model.go +++ b/wasm/indexdb/conversation_model.go @@ -19,10 +19,10 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type LocalConversations struct { diff --git a/wasm/indexdb/conversation_unread_message_model.go b/wasm/indexdb/conversation_unread_message_model.go index d77ae653f..534946d0b 100644 --- a/wasm/indexdb/conversation_unread_message_model.go +++ b/wasm/indexdb/conversation_unread_message_model.go @@ -19,12 +19,12 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type LocalConversationUnreadMessages struct { diff --git a/wasm/indexdb/friend_model.go b/wasm/indexdb/friend_model.go index 08b05bf9b..3c2137143 100644 --- a/wasm/indexdb/friend_model.go +++ b/wasm/indexdb/friend_model.go @@ -19,13 +19,13 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type Friend struct { diff --git a/wasm/indexdb/friend_request_model.go b/wasm/indexdb/friend_request_model.go index b4f6c24f8..d358af797 100644 --- a/wasm/indexdb/friend_request_model.go +++ b/wasm/indexdb/friend_request_model.go @@ -19,10 +19,10 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type FriendRequest struct { diff --git a/wasm/indexdb/group_member_model.go b/wasm/indexdb/group_member_model.go index 71929f51b..4a5e96dae 100644 --- a/wasm/indexdb/group_member_model.go +++ b/wasm/indexdb/group_member_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type LocalGroupMember struct { diff --git a/wasm/indexdb/group_model.go b/wasm/indexdb/group_model.go index feeb9a9d4..6fb029889 100644 --- a/wasm/indexdb/group_model.go +++ b/wasm/indexdb/group_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type LocalGroups struct{} diff --git a/wasm/indexdb/group_request.model.go b/wasm/indexdb/group_request.model.go index d7eaad662..f9bb4e41c 100644 --- a/wasm/indexdb/group_request.model.go +++ b/wasm/indexdb/group_request.model.go @@ -19,12 +19,12 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type LocalGroupRequest struct { diff --git a/wasm/indexdb/init.go b/wasm/indexdb/init.go index 56f31280b..be7ec79dd 100644 --- a/wasm/indexdb/init.go +++ b/wasm/indexdb/init.go @@ -19,7 +19,7 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) //1,使用wasm原生的方式,tinygo应用于go的嵌入式领域,支持的功能有限,支持go语言的子集,甚至json序列化都无法支持 diff --git a/wasm/indexdb/notification_model.go b/wasm/indexdb/notification_model.go index a33bb120c..64320d6f1 100644 --- a/wasm/indexdb/notification_model.go +++ b/wasm/indexdb/notification_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type NotificationSeqs struct { diff --git a/wasm/indexdb/stranger_model.go b/wasm/indexdb/stranger_model.go index feaf7a6fd..b45f68e9f 100644 --- a/wasm/indexdb/stranger_model.go +++ b/wasm/indexdb/stranger_model.go @@ -19,12 +19,12 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type LocalStrangers struct { diff --git a/wasm/indexdb/super_group_chat_log_model.go b/wasm/indexdb/super_group_chat_log_model.go index ea5e4761c..438e1b070 100644 --- a/wasm/indexdb/super_group_chat_log_model.go +++ b/wasm/indexdb/super_group_chat_log_model.go @@ -19,11 +19,11 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" - "open_im_sdk/wasm/exec" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" ) type LocalSuperGroupChatLogs struct{} diff --git a/wasm/indexdb/super_group_model.go b/wasm/indexdb/super_group_model.go index 03e8fa68b..34384fcd1 100644 --- a/wasm/indexdb/super_group_model.go +++ b/wasm/indexdb/super_group_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type LocalSuperGroup struct{} diff --git a/wasm/indexdb/upload_model.go b/wasm/indexdb/upload_model.go index ec2f386c5..992dbe102 100644 --- a/wasm/indexdb/upload_model.go +++ b/wasm/indexdb/upload_model.go @@ -19,9 +19,9 @@ package indexdb import ( "context" - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) type LocalUpload struct{} diff --git a/wasm/indexdb/user_model.go b/wasm/indexdb/user_model.go index b052b0333..8850ea585 100644 --- a/wasm/indexdb/user_model.go +++ b/wasm/indexdb/user_model.go @@ -19,13 +19,13 @@ package indexdb import ( "context" - "open_im_sdk/wasm/exec" + "github.com/openimsdk/openim-sdk-core/v3/wasm/exec" ) import ( - "open_im_sdk/pkg/db/model_struct" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/indexdb/temp_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/db/model_struct" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/indexdb/temp_struct" "time" ) diff --git a/wasm/wasm_wrapper/wasm_conversation_msg.go b/wasm/wasm_wrapper/wasm_conversation_msg.go index 5762807bd..56346f615 100644 --- a/wasm/wasm_wrapper/wasm_conversation_msg.go +++ b/wasm/wasm_wrapper/wasm_conversation_msg.go @@ -18,9 +18,9 @@ package wasm_wrapper import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/wasm/wasm_wrapper/wasm_friend.go b/wasm/wasm_wrapper/wasm_friend.go index d93000907..a6e64ecb0 100644 --- a/wasm/wasm_wrapper/wasm_friend.go +++ b/wasm/wasm_wrapper/wasm_friend.go @@ -18,9 +18,9 @@ package wasm_wrapper import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/wasm/wasm_wrapper/wasm_group.go b/wasm/wasm_wrapper/wasm_group.go index ec1f10f09..718277df7 100644 --- a/wasm/wasm_wrapper/wasm_group.go +++ b/wasm/wasm_wrapper/wasm_group.go @@ -18,9 +18,9 @@ package wasm_wrapper import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/wasm/wasm_wrapper/wasm_init_login.go b/wasm/wasm_wrapper/wasm_init_login.go index ad83cc090..c9b63b885 100644 --- a/wasm/wasm_wrapper/wasm_init_login.go +++ b/wasm/wasm_wrapper/wasm_init_login.go @@ -19,10 +19,10 @@ package wasm_wrapper import ( "errors" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/wasm/wasm_wrapper/wasm_third.go b/wasm/wasm_wrapper/wasm_third.go index b32d48af2..99d84eeda 100644 --- a/wasm/wasm_wrapper/wasm_third.go +++ b/wasm/wasm_wrapper/wasm_third.go @@ -18,10 +18,10 @@ package wasm_wrapper import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/open_im_sdk_callback" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk_callback" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/wasm/wasm_wrapper/wasm_user.go b/wasm/wasm_wrapper/wasm_user.go index a630d4deb..df0d7131c 100644 --- a/wasm/wasm_wrapper/wasm_user.go +++ b/wasm/wasm_wrapper/wasm_user.go @@ -18,9 +18,9 @@ package wasm_wrapper import ( - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/utils" - "open_im_sdk/wasm/event_listener" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener" "syscall/js" ) diff --git a/ws_wrapper/cmd/open_im_sdk_electron.go b/ws_wrapper/cmd/open_im_sdk_electron.go index b40379a53..d0846407f 100644 --- a/ws_wrapper/cmd/open_im_sdk_electron.go +++ b/ws_wrapper/cmd/open_im_sdk_electron.go @@ -17,16 +17,16 @@ package main import ( "flag" "fmt" - "open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" // _ "net/http/pprof" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" _ "net/http/pprof" - "open_im_sdk/sdk_struct" //"open_im_sdk/open_im_sdk" - "open_im_sdk/ws_wrapper/utils" - "open_im_sdk/ws_wrapper/ws_local_server" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/ws_local_server" "runtime" "sync" ) diff --git a/ws_wrapper/cmd/open_im_sdk_my.go b/ws_wrapper/cmd/open_im_sdk_my.go index 95659225e..f16f3ad54 100644 --- a/ws_wrapper/cmd/open_im_sdk_my.go +++ b/ws_wrapper/cmd/open_im_sdk_my.go @@ -9,9 +9,9 @@ package main import ( "flag" "fmt" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/utils" - "open_im_sdk/ws_wrapper/ws_local_server" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/ws_local_server" "runtime" "sync" ) diff --git a/ws_wrapper/cmd/open_im_sdk_server.go b/ws_wrapper/cmd/open_im_sdk_server.go index 18d08fb1f..d7c60dc88 100644 --- a/ws_wrapper/cmd/open_im_sdk_server.go +++ b/ws_wrapper/cmd/open_im_sdk_server.go @@ -17,20 +17,20 @@ package main import ( "flag" "fmt" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" // _ "net/http/pprof" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" "net/http" _ "net/http/pprof" - "open_im_sdk/sdk_struct" //"open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/ws_local_server" log1 "log" - "open_im_sdk/ws_wrapper/utils" - "open_im_sdk/ws_wrapper/ws_local_server" "runtime" "sync" ) diff --git a/ws_wrapper/test/client/client.go b/ws_wrapper/test/client/client.go index e3c792a01..05514a195 100644 --- a/ws_wrapper/test/client/client.go +++ b/ws_wrapper/test/client/client.go @@ -16,9 +16,9 @@ package client import ( "encoding/json" - "open_im_sdk/pkg/network" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/network" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" "sync" "github.com/gorilla/websocket" diff --git a/ws_wrapper/test/cmd/main.go b/ws_wrapper/test/cmd/main.go index 33801b3f4..ce43bcd00 100644 --- a/ws_wrapper/test/cmd/main.go +++ b/ws_wrapper/test/cmd/main.go @@ -18,8 +18,8 @@ import ( "flag" "fmt" - "open_im_sdk/ws_wrapper/test" - "open_im_sdk/ws_wrapper/test/client" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/test" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/test/client" "time" ) diff --git a/ws_wrapper/test/simulationClient.go b/ws_wrapper/test/simulationClient.go index 4b19a345b..18f7490f7 100644 --- a/ws_wrapper/test/simulationClient.go +++ b/ws_wrapper/test/simulationClient.go @@ -16,13 +16,13 @@ package test import ( "encoding/json" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/server_api_params" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/test/client" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/ws_local_server" "net/url" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/server_api_params" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/test/client" - "open_im_sdk/ws_wrapper/ws_local_server" "sync" "time" diff --git a/ws_wrapper/ws_local_server/handle_func.go b/ws_wrapper/ws_local_server/handle_func.go index df097f15b..abf28e06c 100644 --- a/ws_wrapper/ws_local_server/handle_func.go +++ b/ws_wrapper/ws_local_server/handle_func.go @@ -8,8 +8,8 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" "reflect" "runtime" ) diff --git a/ws_wrapper/ws_local_server/ws_conversation_msg.go b/ws_wrapper/ws_local_server/ws_conversation_msg.go index e70cbf83c..6fef1f6ef 100644 --- a/ws_wrapper/ws_local_server/ws_conversation_msg.go +++ b/ws_wrapper/ws_local_server/ws_conversation_msg.go @@ -16,12 +16,12 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/common" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/common" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) // import ( diff --git a/ws_wrapper/ws_local_server/ws_friend.go b/ws_wrapper/ws_local_server/ws_friend.go index 412e1f47f..05657169a 100644 --- a/ws_wrapper/ws_local_server/ws_friend.go +++ b/ws_wrapper/ws_local_server/ws_friend.go @@ -16,9 +16,9 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type FriendCallback struct { @@ -60,7 +60,7 @@ func (wsRouter *WsFuncRouter) SetFriendListener() { userWorker.SetFriendListener(&fr) } -//1 +// 1 func (wsRouter *WsFuncRouter) GetDesignatedFriendsInfo(userIDList string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, userIDList, operationID, runFuncName(), nil) { @@ -69,7 +69,7 @@ func (wsRouter *WsFuncRouter) GetDesignatedFriendsInfo(userIDList string, operat userWorker.Friend().GetDesignatedFriendsInfo(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, userIDList, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) AddFriend(paramsReq string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, paramsReq, operationID, runFuncName(), nil) { @@ -94,7 +94,7 @@ func (wsRouter *WsFuncRouter) GetSendFriendApplicationList(input string, operati userWorker.Friend().GetSendFriendApplicationList(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) AcceptFriendApplication(params string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, params, operationID, runFuncName(), nil) { @@ -103,7 +103,7 @@ func (wsRouter *WsFuncRouter) AcceptFriendApplication(params string, operationID userWorker.Friend().AcceptFriendApplication(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, params, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) RefuseFriendApplication(params string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, params, operationID, runFuncName(), nil) { @@ -112,7 +112,7 @@ func (wsRouter *WsFuncRouter) RefuseFriendApplication(params string, operationID userWorker.Friend().RefuseFriendApplication(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, params, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) CheckFriend(userIDList string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, userIDList, operationID, runFuncName(), nil) { @@ -121,7 +121,7 @@ func (wsRouter *WsFuncRouter) CheckFriend(userIDList string, operationID string) userWorker.Friend().CheckFriend(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, userIDList, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) DeleteFriend(friendUserID string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, friendUserID, operationID, runFuncName(), nil) { @@ -130,7 +130,7 @@ func (wsRouter *WsFuncRouter) DeleteFriend(friendUserID string, operationID stri userWorker.Friend().DeleteFriend(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, friendUserID, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) GetFriendList(input string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, input, operationID, runFuncName(), nil) { @@ -153,7 +153,7 @@ func (wsRouter *WsFuncRouter) SearchFriends(input string, operationID string) { input, operationID) } -//1 +// 1 func (wsRouter *WsFuncRouter) SetFriendRemark(remark string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, remark, operationID, runFuncName(), nil) { diff --git a/ws_wrapper/ws_local_server/ws_group.go b/ws_wrapper/ws_local_server/ws_group.go index 1e3ff0413..a5123c7b5 100644 --- a/ws_wrapper/ws_local_server/ws_group.go +++ b/ws_wrapper/ws_local_server/ws_group.go @@ -16,9 +16,9 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type GroupCallback struct { @@ -425,7 +425,7 @@ func (wsRouter *WsFuncRouter) SearchGroupMembers(input string, operationID strin m["searchParam"].(string), operationID) } -//SetGroupApplyMemberFriend +// SetGroupApplyMemberFriend func (wsRouter *WsFuncRouter) SetGroupApplyMemberFriend(input string, operationID string) { m := make(map[string]interface{}) if err := json.Unmarshal([]byte(input), &m); err != nil { @@ -441,7 +441,7 @@ func (wsRouter *WsFuncRouter) SetGroupApplyMemberFriend(input string, operationI int32(m["rule"].(float64)), m["groupID"].(string), operationID) } -//SetGroupApplyMemberFriend +// SetGroupApplyMemberFriend func (wsRouter *WsFuncRouter) SetGroupLookMemberInfo(input string, operationID string) { m := make(map[string]interface{}) if err := json.Unmarshal([]byte(input), &m); err != nil { diff --git a/ws_wrapper/ws_local_server/ws_handle.go b/ws_wrapper/ws_local_server/ws_handle.go index 7a6f0850c..bde4c3cfd 100644 --- a/ws_wrapper/ws_local_server/ws_handle.go +++ b/ws_wrapper/ws_local_server/ws_handle.go @@ -18,9 +18,9 @@ import ( "encoding/json" "errors" "github.com/gorilla/websocket" - "open_im_sdk/pkg/log" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/utils" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" "reflect" "runtime" "strconv" diff --git a/ws_wrapper/ws_local_server/ws_init_login.go b/ws_wrapper/ws_local_server/ws_init_login.go index c76e40ff6..551b0fa81 100644 --- a/ws_wrapper/ws_local_server/ws_init_login.go +++ b/ws_wrapper/ws_local_server/ws_init_login.go @@ -16,15 +16,15 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/internal/login" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/constant" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/internal/login" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/constant" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" // "open_im_sdk/pkg/constant" // "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" ) type InitCallback struct { diff --git a/ws_wrapper/ws_local_server/ws_organization.go b/ws_wrapper/ws_local_server/ws_organization.go index 0811b1e7d..68eddb124 100644 --- a/ws_wrapper/ws_local_server/ws_organization.go +++ b/ws_wrapper/ws_local_server/ws_organization.go @@ -16,9 +16,9 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type OrganizationCallback struct { @@ -129,7 +129,7 @@ func (wsRouter *WsFuncRouter) SearchOrganization(input, operationID string) { } userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) - if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, input, operationID, runFuncName(), m, "input","offset","count") { + if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, input, operationID, runFuncName(), m, "input", "offset", "count") { return } userWorker.Organization().SearchOrganization(&BaseSuccessFailed{runFuncName(), operationID, wsRouter.uId}, diff --git a/ws_wrapper/ws_local_server/ws_server.go b/ws_wrapper/ws_local_server/ws_server.go index 25cba515e..48afa893c 100644 --- a/ws_wrapper/ws_local_server/ws_server.go +++ b/ws_wrapper/ws_local_server/ws_server.go @@ -9,13 +9,13 @@ package ws_local_server import ( "encoding/json" "fmt" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + utils2 "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/sdk_struct" + "github.com/openimsdk/openim-sdk-core/v3/ws_wrapper/utils" "net/http" _ "net/http/pprof" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - utils2 "open_im_sdk/pkg/utils" - "open_im_sdk/sdk_struct" - "open_im_sdk/ws_wrapper/utils" "runtime" "runtime/debug" "sync" diff --git a/ws_wrapper/ws_local_server/ws_signaling.go b/ws_wrapper/ws_local_server/ws_signaling.go index 3e80ff826..eddf0d9f6 100644 --- a/ws_wrapper/ws_local_server/ws_signaling.go +++ b/ws_wrapper/ws_local_server/ws_signaling.go @@ -15,7 +15,7 @@ package ws_local_server import ( - "open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" ) type SignalingCallback struct { diff --git a/ws_wrapper/ws_local_server/ws_user.go b/ws_wrapper/ws_local_server/ws_user.go index 838d75083..6d0dae4c4 100644 --- a/ws_wrapper/ws_local_server/ws_user.go +++ b/ws_wrapper/ws_local_server/ws_user.go @@ -15,7 +15,7 @@ package ws_local_server import ( - "open_im_sdk/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" ) func (wsRouter *WsFuncRouter) GetUsersInfo(userIDList string, operationID string) { diff --git a/ws_wrapper/ws_local_server/ws_work_moments.go b/ws_wrapper/ws_local_server/ws_work_moments.go index 7dd9969da..0b4699679 100644 --- a/ws_wrapper/ws_local_server/ws_work_moments.go +++ b/ws_wrapper/ws_local_server/ws_work_moments.go @@ -16,9 +16,9 @@ package ws_local_server import ( "encoding/json" - "open_im_sdk/open_im_sdk" - "open_im_sdk/pkg/log" - "open_im_sdk/pkg/utils" + "github.com/openimsdk/openim-sdk-core/v3/open_im_sdk" + "github.com/openimsdk/openim-sdk-core/v3/pkg/log" + "github.com/openimsdk/openim-sdk-core/v3/pkg/utils" ) type WorkMomentsCallback struct {