Invite friends check

This commit is contained in:
2024-04-06 14:36:36 +08:00
parent b2719ae302
commit a96910edd2
7 changed files with 60 additions and 3 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)
}