From 8b560247e43eac5cfd79ad5c8e126a32f92215e2 Mon Sep 17 00:00:00 2001 From: nfel Date: Fri, 29 Nov 2024 00:04:49 +0330 Subject: [PATCH] v2: buf format Signed-off-by: nfel --- alert/v1/msg.proto | 16 ++++++++-------- auth/v1/msg.proto | 2 +- auth/v1/srv.proto | 3 +-- base/v1/msg.proto | 6 +++--- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/alert/v1/msg.proto b/alert/v1/msg.proto index 6ec50ce..0ee7e9d 100644 --- a/alert/v1/msg.proto +++ b/alert/v1/msg.proto @@ -4,18 +4,18 @@ package alert.v1; import "base/v1/msg.proto"; - -message AlertFilter{ +message AlertFilter { base.v1.Filter base_filter = 1; - Importance importance = 2; - LogSource source = 3; + Importance importance = 2; + LogSource source = 3; } +//Importance of given event enum Importance { - LOW = 0; - MEDIUM = 1; - HIGH = 2; - CRITICAL = 3; + LOW = 0; // Low Severity ( unimportant and can be ignored ) + MEDIUM = 1; // MEDIUM Severity + HIGH = 2; // High Severity + CRITICAL = 3; // CRITICAL Severity ( can cause panics and data lost ) } enum LogSource { diff --git a/auth/v1/msg.proto b/auth/v1/msg.proto index 270e4d5..cecaa7c 100644 --- a/auth/v1/msg.proto +++ b/auth/v1/msg.proto @@ -131,7 +131,7 @@ message Identity { string updated_at = 18; string created_at = 19; string email = 20; - string mobile = 21; + string mobile = 21; optional Company company = 22; optional string employee_info = 23; } diff --git a/auth/v1/srv.proto b/auth/v1/srv.proto index 71f11de..6c8d942 100644 --- a/auth/v1/srv.proto +++ b/auth/v1/srv.proto @@ -14,8 +14,7 @@ service AuthorizationService { rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes) {} rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes) {} - rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) - returns (UserAccessTokenRes) {} + rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) returns (UserAccessTokenRes) {} rpc UserGetUserPermission(InternalIAM) returns (PermissionList) {} diff --git a/base/v1/msg.proto b/base/v1/msg.proto index 32a57cf..10c429d 100644 --- a/base/v1/msg.proto +++ b/base/v1/msg.proto @@ -13,12 +13,12 @@ message IdRes { message IdReq { int64 id = 1; } -message Pagination{ - uint32 page = 1; // in query param it will be p +message Pagination { + uint32 page = 1; // in query param it will be p uint32 page_size = 2; // in query param it will be pz } message Filter { string query = 1; // q string sort = 2; // s - optional Pagination page = 3; + optional Pagination page = 3; }