v2: buf format

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-11-29 00:04:49 +03:30
parent b3ceb01bfb
commit 8b560247e4
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
4 changed files with 13 additions and 14 deletions

View File

@ -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 {

View File

@ -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;
}

View File

@ -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) {}

View File

@ -13,7 +13,7 @@ message IdRes {
message IdReq {
int64 id = 1;
}
message Pagination{
message Pagination {
uint32 page = 1; // in query param it will be p
uint32 page_size = 2; // in query param it will be pz
}