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,10 +2,11 @@ package fcm
import (
"context"
"testing"
"github.com/OpenIMSDK/Open-IM-Server/internal/push/offlinepush"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/stretchr/testify/assert"
"testing"
)
func Test_Push(t *testing.T) {
+5 -3
View File
@@ -1,13 +1,17 @@
package getui
import (
"github.com/go-redis/redis"
"sync"
"github.com/go-redis/redis"
"context"
"crypto/sha256"
"encoding/hex"
"errors"
"strconv"
"time"
"github.com/OpenIMSDK/Open-IM-Server/internal/push/offlinepush"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
@@ -16,8 +20,6 @@ import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mcontext"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils/splitter"
"strconv"
"time"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
)
@@ -2,6 +2,7 @@ package body
import (
"errors"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
)
+1
View File
@@ -4,6 +4,7 @@ import (
"context"
"encoding/base64"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/internal/push/offlinepush"
"github.com/OpenIMSDK/Open-IM-Server/internal/push/offlinepush/jpush/body"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"