diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8572273..697d8cf 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,20 +4,9 @@
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
@@ -165,7 +154,6 @@
-
@@ -190,7 +178,8 @@
-
+
+
diff --git a/pkg/authkit/relative.go b/pkg/authkit/relative.go
new file mode 100644
index 0000000..8242da7
--- /dev/null
+++ b/pkg/authkit/relative.go
@@ -0,0 +1,19 @@
+package authkit
+
+import (
+ "git.solsynth.dev/hypernet/nexus/pkg/nex"
+ "git.solsynth.dev/hypernet/nexus/pkg/proto"
+)
+
+func ListRelative(nx *nex.Conn, userId uint, status int32, isRelated bool) ([]*proto.UserInfo, error) {
+ conn, err := nx.GetClientGrpcConn(nex.ServiceTypeAuth)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := proto.NewUserServiceClient(conn).ListUserRelative(nil, &proto.ListUserRelativeRequest{
+ UserId: uint64(userId),
+ Status: status,
+ IsRelated: isRelated,
+ })
+ return resp.GetData(), err
+}