v2: fetch basic info about user's for deposit worker

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-12-31 13:09:12 +03:30
parent 74d54cfc60
commit d6ed4393ab
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
2 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,10 @@ syntax = "proto3";
package auth.v1; package auth.v1;
import "auth/v1/msg.proto"; import "auth/v1/msg.proto";
import "base/v1/msg.proto";
service InternalAuthorizationService { service InternalAuthorizationService {
rpc LookUpName(LookUpNameReq) returns (LookUpNameRes) {} rpc LookUpName(LookUpNameReq) returns (LookUpNameRes) {}
// This meant to only be used in a worker process
rpc FetchBasicUserInfoList(base.v1.Empty) returns (BasicUserInfoList) {}
} }

View File

@ -247,3 +247,14 @@ message LookUpNameReq {
message LookUpNameRes { message LookUpNameRes {
Recipient recipient = 1; Recipient recipient = 1;
} }
message BasicUserInfo {
string name = 1;
string national_id = 2;
string pub_key = 3;
int64 user_id = 4;
}
message BasicUserInfoList {
repeated BasicUserInfo list = 1;
}