Auto Formatter + Company & EmployeeID
This commit is contained in:
parent
595d8cf239
commit
0e93462481
@ -2,27 +2,27 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package authorization;
|
package authorization;
|
||||||
|
|
||||||
import "base_message.proto";
|
|
||||||
import "authorization_message.proto";
|
import "authorization_message.proto";
|
||||||
|
import "base_message.proto";
|
||||||
|
|
||||||
service AuthorizationService {
|
service AuthorizationService {
|
||||||
rpc InternalAuthorizationDeleteCache(base.Empty) returns(base.StatusRes);
|
rpc InternalAuthorizationDeleteCache(base.Empty) returns (base.StatusRes);
|
||||||
rpc InternalInitRoutes(InternalInitRoutesReq) returns (base.StatusRes){}
|
rpc InternalInitRoutes(InternalInitRoutesReq) returns (base.StatusRes) {}
|
||||||
rpc InternalGetUserIdentityBasic(GetUserReq) returns(UserIdentityBasic){}
|
rpc InternalGetUserIdentityBasic(GetUserReq) returns (UserIdentityBasic) {}
|
||||||
rpc InternalGetUserIAM(GetUserReq) returns(InternalIAM){}
|
rpc InternalGetUserIAM(GetUserReq) returns (InternalIAM) {}
|
||||||
rpc CheckIAM(CheckIAMReq) returns (InternalIAM){}
|
rpc CheckIAM(CheckIAMReq) returns (InternalIAM) {}
|
||||||
|
|
||||||
rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes){}
|
rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes) {}
|
||||||
rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes){}
|
rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes) {}
|
||||||
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) returns (UserAccessTokenRes){}
|
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) returns (UserAccessTokenRes) {}
|
||||||
|
|
||||||
rpc UserGetUserPermission(InternalIAM) returns (PermissionList){}
|
rpc UserGetUserPermission(InternalIAM) returns (PermissionList) {}
|
||||||
|
|
||||||
rpc UserGetIdentity(InternalIAM) returns (Identity){}
|
rpc UserGetIdentity(InternalIAM) returns (Identity) {}
|
||||||
rpc UserUpdateIdentity(UserUpdateIdentityReq) returns (base.StatusRes){}
|
rpc UserUpdateIdentity(UserUpdateIdentityReq) returns (base.StatusRes) {}
|
||||||
|
|
||||||
rpc UserGetBankInfoList(InternalIAM) returns (BankInfoList){}
|
rpc UserGetBankInfoList(InternalIAM) returns (BankInfoList) {}
|
||||||
rpc UserUpdateBankInfo(UserUpdateBankInfoReq) returns (base.StatusRes){}
|
rpc UserUpdateBankInfo(UserUpdateBankInfoReq) returns (base.StatusRes) {}
|
||||||
|
|
||||||
rpc GetUser(GetUserReq) returns (User){}
|
rpc GetUser(GetUserReq) returns (User) {}
|
||||||
}
|
}
|
||||||
@ -3,10 +3,10 @@ syntax = "proto3";
|
|||||||
package authorization;
|
package authorization;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Internal
|
Internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message InternalInitRoutesReq{
|
message InternalInitRoutesReq {
|
||||||
repeated InternalRoute routes = 1;
|
repeated InternalRoute routes = 1;
|
||||||
}
|
}
|
||||||
message InternalRoute {
|
message InternalRoute {
|
||||||
@ -16,14 +16,14 @@ message InternalRoute {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Role Permission */
|
/* Role Permission */
|
||||||
message Role{
|
message Role {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
string title = 2;
|
string title = 2;
|
||||||
string Key = 3;
|
string Key = 3;
|
||||||
string type = 4;
|
string type = 4;
|
||||||
}
|
}
|
||||||
message Permission{
|
message Permission {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
string title = 2;
|
string title = 2;
|
||||||
string key = 3;
|
string key = 3;
|
||||||
string route = 4;
|
string route = 4;
|
||||||
@ -35,8 +35,8 @@ message PermissionList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
UserSendOtp
|
UserSendOtp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message UserSendOtpReq {
|
message UserSendOtpReq {
|
||||||
string mobile = 1;
|
string mobile = 1;
|
||||||
@ -46,8 +46,8 @@ message UserSendOtpRes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
UserLogin
|
UserLogin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message UserLoginReq {
|
message UserLoginReq {
|
||||||
string mobile = 1;
|
string mobile = 1;
|
||||||
@ -63,26 +63,26 @@ message UserAccessTokenRes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
IAM
|
IAM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
message CheckIAMReq{
|
message CheckIAMReq {
|
||||||
string access_token = 1;
|
string access_token = 1;
|
||||||
string route = 2;
|
string route = 2;
|
||||||
string method = 3;
|
string method = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message InternalIAM {
|
message InternalIAM {
|
||||||
User user = 1;
|
User user = 1;
|
||||||
IdentityBasic identity = 2;
|
IdentityBasic identity = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
User
|
User
|
||||||
*/
|
*/
|
||||||
message GetUserReq {
|
message GetUserReq {
|
||||||
int64 user_id = 1;
|
int64 user_id = 1;
|
||||||
string national_id =2;
|
string national_id = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message User {
|
message User {
|
||||||
@ -93,6 +93,12 @@ message User {
|
|||||||
repeated int64 roles = 5;
|
repeated int64 roles = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Company {
|
||||||
|
int64 id = 1;
|
||||||
|
string name = 2;
|
||||||
|
string location = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message Identity {
|
message Identity {
|
||||||
string national_id = 1;
|
string national_id = 1;
|
||||||
string national_serial_id = 2;
|
string national_serial_id = 2;
|
||||||
@ -114,7 +120,8 @@ message Identity {
|
|||||||
string updated_at = 18;
|
string updated_at = 18;
|
||||||
string created_at = 19;
|
string created_at = 19;
|
||||||
string email = 20;
|
string email = 20;
|
||||||
|
Company company = 21;
|
||||||
|
optional string employee_info = 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
message IdentityBasic {
|
message IdentityBasic {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user