mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Refactor code
This commit is contained in:
parent
a456936853
commit
d12d571c2b
@ -176,6 +176,7 @@ iOSPush:
|
||||
badgeCount: true
|
||||
|
||||
notification:
|
||||
|
||||
groupCreated:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
@ -188,8 +189,7 @@ notification:
|
||||
defaultTips:
|
||||
tips: "create the group" # xx create the group
|
||||
|
||||
|
||||
groupInfoChanged:
|
||||
groupInfoSet:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
@ -201,9 +201,105 @@ notification:
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
joinGroupApplication:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
memberQuit:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
FriendApplicationAdded:
|
||||
groupApplicationAccepted:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
groupApplicationRejected:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
groupOwnerTransferred:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
memberKicked:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
memberInvited:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
memberEnter:
|
||||
conversation:
|
||||
reliabilityLevel: 1
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: false
|
||||
title: "group info changed title"
|
||||
desc: "group info changed desc"
|
||||
ext: "group info changed ext"
|
||||
defaultTips:
|
||||
tips: "group info changed by" # group info changed by xx
|
||||
|
||||
#############################friend#################################
|
||||
|
||||
friendApplicationAdded:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -215,7 +311,7 @@ notification:
|
||||
defaultTips:
|
||||
tips: "I applies to add you as a friend" #
|
||||
|
||||
FriendApplicationApproved:
|
||||
friendApplicationApproved:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -228,7 +324,7 @@ notification:
|
||||
tips: "I applies to add your friend application" #
|
||||
|
||||
|
||||
FriendApplicationRejected:
|
||||
friendApplicationRejected:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -244,7 +340,7 @@ notification:
|
||||
|
||||
|
||||
|
||||
FriendAdded:
|
||||
friendAdded:
|
||||
conversation:
|
||||
reliabilityLevel: 3
|
||||
unreadCount: true
|
||||
@ -258,7 +354,7 @@ notification:
|
||||
|
||||
|
||||
|
||||
FriendDeleted:
|
||||
friendDeleted:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -271,7 +367,7 @@ notification:
|
||||
tips: "Deleted a friend" #
|
||||
|
||||
|
||||
FriendInfoChanged:
|
||||
friendInfoChanged:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -285,7 +381,7 @@ notification:
|
||||
|
||||
|
||||
|
||||
BlackAdded:
|
||||
blackAdded:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
@ -298,7 +394,20 @@ notification:
|
||||
tips: "Blocked a user" #
|
||||
|
||||
|
||||
BlackDeleted:
|
||||
blackDeleted:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
offlinePush:
|
||||
switch: true
|
||||
title: "Remove a blocked user"
|
||||
desc: "Remove a blocked user"
|
||||
ext: "Remove a blocked user"
|
||||
defaultTips:
|
||||
tips: "Remove a blocked user"
|
||||
|
||||
#####################user#########################
|
||||
userInfoUpdated:
|
||||
conversation:
|
||||
reliabilityLevel: 2
|
||||
unreadCount: false
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"Open_IM/pkg/common/token_verify"
|
||||
"Open_IM/pkg/grpc-etcdv3/getcdv3"
|
||||
"Open_IM/pkg/proto/chat"
|
||||
"Open_IM/pkg/proto/sdk_ws"
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
"context"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/common/log"
|
||||
pbChat "Open_IM/pkg/proto/chat"
|
||||
"Open_IM/pkg/proto/sdk_ws"
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
"context"
|
||||
|
||||
"Open_IM/pkg/grpc-etcdv3/getcdv3"
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
commonDB "Open_IM/pkg/common/db"
|
||||
"Open_IM/pkg/common/log"
|
||||
"Open_IM/pkg/proto/sdk_ws"
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
|
@ -260,7 +260,7 @@ type config struct {
|
||||
OfflinePush POfflinePush `yaml:"offlinePush"`
|
||||
DefaultTips PDefaultTips `yaml:"defaultTips"`
|
||||
}
|
||||
FriendRemarkSet struct {
|
||||
FriendInfoChanged struct {
|
||||
Conversation PConversation `yaml:"conversation"`
|
||||
OfflinePush POfflinePush `yaml:"offlinePush"`
|
||||
DefaultTips PDefaultTips `yaml:"defaultTips"`
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"Open_IM/pkg/common/constant"
|
||||
"Open_IM/pkg/common/log"
|
||||
pbMsg "Open_IM/pkg/proto/chat"
|
||||
"Open_IM/pkg/proto/sdk_ws"
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
"errors"
|
||||
"github.com/garyburd/redigo/redis"
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
@ -3,7 +3,6 @@ package utils
|
||||
import (
|
||||
db "Open_IM/pkg/common/db"
|
||||
imdb "Open_IM/pkg/common/db/mysql_model/im_mysql_model"
|
||||
"Open_IM/pkg/common/log"
|
||||
"Open_IM/pkg/common/token_verify"
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
"Open_IM/pkg/utils"
|
||||
|
Loading…
x
Reference in New Issue
Block a user