add cmd/rpc

pull/9/head
xmcy0011 3 years ago
parent 1a12eb9703
commit 585715adbf

@ -1,7 +1,7 @@
package main package main
import ( import (
rpcAuth "Open_IM/src/rpc/auth/auth" rpcAuth "Open_IM/internal/rpc/auth"
"flag" "flag"
) )

@ -1,7 +1,7 @@
package main package main
import ( import (
"Open_IM/src/rpc/friend/friend" "Open_IM/internal/rpc/friend"
"flag" "flag"
) )

@ -1,7 +1,7 @@
package main package main
import ( import (
"Open_IM/src/rpc/group/group" "Open_IM/internal/rpc/group"
"flag" "flag"
) )

@ -1,7 +1,7 @@
package main package main
import ( import (
rpcChat "Open_IM/src/rpc/chat/chat" rpcChat "Open_IM/internal/rpc/chat"
"Open_IM/src/utils" "Open_IM/src/utils"
"flag" "flag"
) )

@ -1,7 +1,7 @@
package main package main
import ( import (
"Open_IM/src/rpc/user/user" "Open_IM/internal/rpc/user"
"flag" "flag"
) )

@ -7,6 +7,8 @@
package logic package logic
import ( import (
rpcChat "Open_IM/internal/rpc/chat"
"Open_IM/internal/rpc/user/internal_service"
"Open_IM/src/common/config" "Open_IM/src/common/config"
"Open_IM/src/common/constant" "Open_IM/src/common/constant"
"Open_IM/src/common/log" "Open_IM/src/common/log"
@ -15,8 +17,6 @@ import (
pbGroup "Open_IM/src/proto/group" pbGroup "Open_IM/src/proto/group"
pbRelay "Open_IM/src/proto/relay" pbRelay "Open_IM/src/proto/relay"
pbGetInfo "Open_IM/src/proto/user" pbGetInfo "Open_IM/src/proto/user"
rpcChat "Open_IM/src/rpc/chat/chat"
"Open_IM/src/rpc/user/internal_service"
"Open_IM/src/utils" "Open_IM/src/utils"
"context" "context"
"encoding/json" "encoding/json"

@ -1,4 +1,4 @@
package rpcAuth package auth
import ( import (
"Open_IM/src/common/config" "Open_IM/src/common/config"

@ -1,4 +1,4 @@
package rpcAuth package auth
import ( import (
"Open_IM/src/common/db/mysql_model/im_mysql_model" "Open_IM/src/common/db/mysql_model/im_mysql_model"

@ -1,4 +1,4 @@
package rpcAuth package auth
import ( import (
"Open_IM/src/common/db/mysql_model/im_mysql_model" "Open_IM/src/common/db/mysql_model/im_mysql_model"

@ -1,4 +1,4 @@
package rpcChat package chat
import ( import (
"context" "context"

@ -1,4 +1,4 @@
package rpcChat package chat
import ( import (
"Open_IM/src/common/config" "Open_IM/src/common/config"

@ -1,4 +1,4 @@
package rpcChat package chat
import ( import (
"Open_IM/internal/api/group" "Open_IM/internal/api/group"

@ -1,14 +1,14 @@
package friend package friend
import ( import (
"Open_IM/internal/push/content_struct"
"Open_IM/internal/push/logic"
"Open_IM/src/common/config" "Open_IM/src/common/config"
"Open_IM/src/common/constant" "Open_IM/src/common/constant"
"Open_IM/src/common/db/mysql_model/im_mysql_model" "Open_IM/src/common/db/mysql_model/im_mysql_model"
"Open_IM/src/common/log" "Open_IM/src/common/log"
pbChat "Open_IM/src/proto/chat" pbChat "Open_IM/src/proto/chat"
pbFriend "Open_IM/src/proto/friend" pbFriend "Open_IM/src/proto/friend"
"Open_IM/src/push/content_struct"
"Open_IM/src/push/logic"
"Open_IM/src/utils" "Open_IM/src/utils"
"context" "context"
) )

@ -1,6 +1,8 @@
package group package group
import ( import (
"Open_IM/internal/push/content_struct"
"Open_IM/internal/push/logic"
"Open_IM/src/common/config" "Open_IM/src/common/config"
"Open_IM/src/common/constant" "Open_IM/src/common/constant"
"Open_IM/src/common/db" "Open_IM/src/common/db"
@ -9,8 +11,6 @@ import (
"Open_IM/src/grpc-etcdv3/getcdv3" "Open_IM/src/grpc-etcdv3/getcdv3"
pbChat "Open_IM/src/proto/chat" pbChat "Open_IM/src/proto/chat"
pbGroup "Open_IM/src/proto/group" pbGroup "Open_IM/src/proto/group"
"Open_IM/src/push/content_struct"
"Open_IM/src/push/logic"
"Open_IM/src/utils" "Open_IM/src/utils"
"context" "context"
"google.golang.org/grpc" "google.golang.org/grpc"

@ -1,12 +1,12 @@
package group package group
import ( import (
"Open_IM/internal/push/content_struct"
"Open_IM/internal/push/logic"
"Open_IM/src/common/config" "Open_IM/src/common/config"
"Open_IM/src/common/constant" "Open_IM/src/common/constant"
"Open_IM/src/common/db" "Open_IM/src/common/db"
pbChat "Open_IM/src/proto/chat" pbChat "Open_IM/src/proto/chat"
"Open_IM/src/push/content_struct"
"Open_IM/src/push/logic"
"encoding/json" "encoding/json"
imdb "Open_IM/src/common/db/mysql_model/im_mysql_model" imdb "Open_IM/src/common/db/mysql_model/im_mysql_model"

@ -1,6 +1,7 @@
package user package user
import ( import (
"Open_IM/internal/push/logic"
"Open_IM/src/common/config" "Open_IM/src/common/config"
"Open_IM/src/common/constant" "Open_IM/src/common/constant"
"Open_IM/src/common/db/mysql_model/im_mysql_model" "Open_IM/src/common/db/mysql_model/im_mysql_model"
@ -9,7 +10,6 @@ import (
pbChat "Open_IM/src/proto/chat" pbChat "Open_IM/src/proto/chat"
pbFriend "Open_IM/src/proto/friend" pbFriend "Open_IM/src/proto/friend"
pbUser "Open_IM/src/proto/user" pbUser "Open_IM/src/proto/user"
"Open_IM/src/push/logic"
"Open_IM/src/utils" "Open_IM/src/utils"
"context" "context"
"strings" "strings"
Loading…
Cancel
Save