From 8326c716e38495c6bff0a0ba23a8d6f36f7c3efc Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 31 Oct 2024 21:07:53 +0800 Subject: [PATCH] :sparkles: Support users related rpc calls --- .idea/workspace.xml | 74 +++-- go.mod | 2 +- go.sum | 2 + pkg/authkit/models/accounts.go | 11 + pkg/internal/grpc/auth.go | 59 ---- pkg/internal/grpc/{notifier.go => notify.go} | 0 pkg/internal/grpc/server.go | 14 +- pkg/internal/grpc/user.go | 66 ++++ pkg/proto/notify.pb.go | 137 +++++--- pkg/proto/notify.proto | 2 +- pkg/proto/notify_grpc.pb.go | 122 +++---- pkg/proto/realm.pb.go | 331 +++++++++++++------ pkg/proto/realm.proto | 2 +- pkg/proto/realm_grpc.pb.go | 194 +++++------ pkg/proto/record.pb.go | 70 ++-- pkg/proto/record.proto | 16 +- pkg/proto/record_grpc.pb.go | 86 ++--- 17 files changed, 698 insertions(+), 490 deletions(-) rename pkg/internal/grpc/{notifier.go => notify.go} (100%) create mode 100644 pkg/internal/grpc/user.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f629202..c8066f9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,25 @@