Auto Formatter + Company & EmployeeID
This commit is contained in:
+28
-21
@@ -3,10 +3,10 @@ syntax = "proto3";
|
||||
package authorization;
|
||||
|
||||
/*
|
||||
Internal
|
||||
*/
|
||||
Internal
|
||||
*/
|
||||
|
||||
message InternalInitRoutesReq{
|
||||
message InternalInitRoutesReq {
|
||||
repeated InternalRoute routes = 1;
|
||||
}
|
||||
message InternalRoute {
|
||||
@@ -16,14 +16,14 @@ message InternalRoute {
|
||||
}
|
||||
|
||||
/* Role Permission */
|
||||
message Role{
|
||||
int64 id = 1;
|
||||
message Role {
|
||||
int64 id = 1;
|
||||
string title = 2;
|
||||
string Key = 3;
|
||||
string type = 4;
|
||||
}
|
||||
message Permission{
|
||||
int64 id = 1;
|
||||
message Permission {
|
||||
int64 id = 1;
|
||||
string title = 2;
|
||||
string key = 3;
|
||||
string route = 4;
|
||||
@@ -35,8 +35,8 @@ message PermissionList {
|
||||
}
|
||||
|
||||
/*
|
||||
UserSendOtp
|
||||
*/
|
||||
UserSendOtp
|
||||
*/
|
||||
|
||||
message UserSendOtpReq {
|
||||
string mobile = 1;
|
||||
@@ -46,8 +46,8 @@ message UserSendOtpRes {
|
||||
}
|
||||
|
||||
/*
|
||||
UserLogin
|
||||
*/
|
||||
UserLogin
|
||||
*/
|
||||
|
||||
message UserLoginReq {
|
||||
string mobile = 1;
|
||||
@@ -63,26 +63,26 @@ message UserAccessTokenRes {
|
||||
}
|
||||
|
||||
/*
|
||||
IAM
|
||||
*/
|
||||
IAM
|
||||
*/
|
||||
|
||||
message CheckIAMReq{
|
||||
message CheckIAMReq {
|
||||
string access_token = 1;
|
||||
string route = 2;
|
||||
string method = 3;
|
||||
}
|
||||
|
||||
message InternalIAM {
|
||||
User user = 1;
|
||||
User user = 1;
|
||||
IdentityBasic identity = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
User
|
||||
*/
|
||||
User
|
||||
*/
|
||||
message GetUserReq {
|
||||
int64 user_id = 1;
|
||||
string national_id =2;
|
||||
int64 user_id = 1;
|
||||
string national_id = 2;
|
||||
}
|
||||
|
||||
message User {
|
||||
@@ -93,6 +93,12 @@ message User {
|
||||
repeated int64 roles = 5;
|
||||
}
|
||||
|
||||
message Company {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string location = 3;
|
||||
}
|
||||
|
||||
message Identity {
|
||||
string national_id = 1;
|
||||
string national_serial_id = 2;
|
||||
@@ -114,7 +120,8 @@ message Identity {
|
||||
string updated_at = 18;
|
||||
string created_at = 19;
|
||||
string email = 20;
|
||||
|
||||
Company company = 21;
|
||||
optional string employee_info = 22;
|
||||
}
|
||||
|
||||
message IdentityBasic {
|
||||
@@ -156,4 +163,4 @@ message BankInfo {
|
||||
int32 status = 5;
|
||||
string updated_at = 6;
|
||||
string created_at = 7;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user