add internal rpc file and LookUpName rpc #5
9
auth/v1/internal_srv.proto
Normal file
9
auth/v1/internal_srv.proto
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package auth.v1;
|
||||||
|
|
||||||
|
import "auth/v1/msg.proto";
|
||||||
|
|
||||||
|
service InternalAuthorizationService {
|
||||||
|
rpc LookUpName(LookUpNameReq) returns (LookUpNameRes) {}
|
||||||
|
}
|
||||||
@ -221,3 +221,17 @@ enum OtpStateEnum {
|
|||||||
INTERNAL_TRANSFER = 2;
|
INTERNAL_TRANSFER = 2;
|
||||||
EXTERNAL_TRANSFER = 3;
|
EXTERNAL_TRANSFER = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Recipient {
|
||||||
|
string id = 1;
|
||||||
|
optional string first_name = 2;
|
||||||
|
optional string last_name = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message LookUpNameReq {
|
||||||
|
Recipient recipient = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message LookUpNameRes {
|
||||||
|
Recipient recipient = 1;
|
||||||
|
}
|
||||||
@ -289,15 +289,9 @@ message UserBuyAssetReq {
|
|||||||
Transfer
|
Transfer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message Recipient {
|
|
||||||
string id = 1;
|
|
||||||
optional string first_name = 2;
|
|
||||||
optional string last_name = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message InternalTransferAssetReq {
|
message InternalTransferAssetReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
Recipient recipient = 2;
|
auth.v1.Recipient recipient = 2;
|
||||||
double amount = 3;
|
double amount = 3;
|
||||||
optional int64 network_id = 4;
|
optional int64 network_id = 4;
|
||||||
int64 asset_id = 5;
|
int64 asset_id = 5;
|
||||||
@ -306,7 +300,7 @@ message InternalTransferAssetReq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message InternalTransferAssetRes {
|
message InternalTransferAssetRes {
|
||||||
Recipient recipient = 1;
|
auth.v1.Recipient recipient = 1;
|
||||||
double amount = 2;
|
double amount = 2;
|
||||||
string transaction_id = 3;
|
string transaction_id = 3;
|
||||||
string transaction_hash = 4;
|
string transaction_hash = 4;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user