dev - Added Request with extra params in order to support filters

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
2024-10-26 13:07:53 +03:30
parent c24f5b928f
commit 3a44056962
3 changed files with 18 additions and 26 deletions
+13 -21
View File
@@ -6,9 +6,7 @@ package authorization;
Internal
*/
message InternalInitRoutesReq {
repeated InternalRoute routes = 1;
}
message InternalInitRoutesReq { repeated InternalRoute routes = 1; }
message InternalRoute {
string path = 1;
string method = 2;
@@ -30,20 +28,14 @@ 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
@@ -53,9 +45,7 @@ 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;
@@ -75,13 +65,16 @@ message CheckIAMReq {
message InternalIAM {
User user = 1;
IdentityBasic identity = 2;
repeated Company company = 3;
repeated Company company = 3;
}
message IdReqWithIAM {
int64 id = 1;
InternalIAM iam = 2;
}
message ReqWithIAMAndParams {
InternalIAM iam = 1;
map<string, string> params = 2;
}
/*
User
@@ -159,9 +152,7 @@ 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 {
@@ -189,7 +180,8 @@ 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