From 88cfb4e15059ef71af84f18658689db5fb0571b5 Mon Sep 17 00:00:00 2001 From: nfel Date: Sat, 26 Oct 2024 15:35:20 +0330 Subject: [PATCH] dev - optional type instead of map Signed-off-by: nfel --- authorization_message.proto | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/authorization_message.proto b/authorization_message.proto index ff97b8e..e26de36 100644 --- a/authorization_message.proto +++ b/authorization_message.proto @@ -6,7 +6,9 @@ package authorization; Internal */ -message InternalInitRoutesReq { repeated InternalRoute routes = 1; } +message InternalInitRoutesReq { + repeated InternalRoute routes = 1; +} message InternalRoute { string path = 1; string method = 2; @@ -28,14 +30,20 @@ message Permission { string method = 5; } -message PermissionList { repeated Permission list = 1; } +message PermissionList { + repeated Permission list = 1; +} /* UserSendOtp */ -message UserSendOtpReq { string mobile = 1; } -message UserSendOtpRes { int64 expired_at = 1; } +message UserSendOtpReq { + string mobile = 1; +} +message UserSendOtpRes { + int64 expired_at = 1; +} /* UserLogin @@ -45,7 +53,9 @@ message UserLoginReq { string mobile = 1; string otp_code = 2; } -message UserRefreshTokenReq { string refresh_token = 1; } +message UserRefreshTokenReq { + string refresh_token = 1; +} message UserAccessTokenRes { string access_token = 1; int64 access_expired_at = 2; @@ -73,7 +83,7 @@ message IdReqWithIAM { } message ReqWithIAMAndParams { InternalIAM iam = 1; - map params = 2; + optional bool accepted = 2; } /* @@ -152,7 +162,9 @@ message UserUpdateBankInfoReq { string card_number = 4; } -message BankInfoList { repeated BankInfo list = 1; } +message BankInfoList { + repeated BankInfo list = 1; +} // Status 0: Fail Verify, 1: Verified, 2: Does not Match user's credential enum BankInfoStatusEnum { @@ -180,8 +192,7 @@ message TFAReq { InternalIAM iam = 1; optional string mobile = 2; optional string email = 3; - optional string reason = - 4; // issued jwt reason -> can be login, redeem, withdrawal + optional string reason = 4; // issued jwt reason -> can be login, redeem, withdrawal } // Two Factor Authentication Exchange Response