Only can invite friends now

This commit is contained in:
2024-04-06 12:05:54 +08:00
parent e74d38f479
commit 49363c801a
3 changed files with 18 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import (
"google.golang.org/grpc"
)
var Friendships idpb.FriendshipsClient
var Notify idpb.NotifyClient
var Auth idpb.AuthClient
@@ -16,6 +17,7 @@ func ConnectPassport() error {
if conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())); err != nil {
return err
} else {
Friendships = idpb.NewFriendshipsClient(conn)
Notify = idpb.NewNotifyClient(conn)
Auth = idpb.NewAuthClient(conn)
}