style: add import formatting

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-07-03 14:12:29 +08:00
parent 4684a428f5
commit 5ec628fccb
62 changed files with 209 additions and 76 deletions
+2 -1
View File
@@ -2,12 +2,13 @@ package msggateway
import (
"context"
"time"
cbapi "github.com/OpenIMSDK/Open-IM-Server/pkg/callbackstruct"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/http"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mcontext"
"time"
)
func url() string {
+3 -2
View File
@@ -1,11 +1,12 @@
package msggateway
import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"net/http"
"strconv"
"time"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
)
type UserConnContext struct {
+1
View File
@@ -3,6 +3,7 @@ package msggateway
import (
"bytes"
"encoding/gob"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
)
+1
View File
@@ -2,6 +2,7 @@ package msggateway
import (
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
+2 -1
View File
@@ -1,9 +1,10 @@
package msggateway
import (
"github.com/gorilla/websocket"
"net/http"
"time"
"github.com/gorilla/websocket"
)
type LongConn interface {
+2 -1
View File
@@ -2,9 +2,10 @@ package msggateway
import (
"context"
"sync"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"sync"
)
type UserMap struct {