Files
contracts/proto/sso/rbac.proto
Дмитрий facbac7c1a
All checks were successful
Publish / Publish Job (push) Successful in 2m28s
rework folder
2026-04-09 16:15:25 +03:00

49 lines
933 B
Protocol Buffer

syntax = "proto3";
package rbac.v1;
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service RbacService {
rpc GetAllPermissions (GetAllPermissionsRequest) returns (GetAllPermissionsResponse);
rpc GetAllRoles(GetAllRolesRequest) returns (GetAllRolesResponse);
}
message GetAllPermissionsRequest {
string user_id = 1;
string session_id=2;
}
message GetAllPermissionsResponse {
repeated Permission permissions = 1;
}
message Permission {
string id = 1;
string code = 2;
string description = 3;
string module = 4;
repeated string roles = 5;
}
message GetAllRolesRequest {
string user_id = 1;
string session_id=2;
}
message GetAllRolesResponse {
repeated Roles roles = 1;
}
message Roles {
string id = 1;
string name = 2;
int32 level = 3;
repeated string permissions = 4;
repeated string ldap_mapping = 5;
repeated string accounts = 6;
}