Files
vt/routers/mandant/v1/mandant.proto
2026-01-22 17:39:04 +01:00

49 lines
981 B
Protocol Buffer

syntax = "proto3";
package mandant.v1;
message GetCurrentTenantRequest {
}
message GetTenantRequest {
int64 id = 1;
}
message GetTenantResponse {
int64 id = 1;
string name = 2;
string plan = 3;
string logo = 4;
string color = 5;
}
message ListTenantRequest {
int32 page = 1;
int32 per_page = 2;
string orber_by = 3;
bool asc = 4;
}
message Metadata {
int32 totalCount = 1;
}
message ListProjectsResponse {
repeated GetTenantResponse data = 1;
Metadata meta = 2;
}
message SetCurrentTenantRequest {
int64 tenant_id = 1;
}
message SetCurrentTenantResponse {
bool success = 1;
}
service MandantService {
rpc GetCurrentTenant(GetCurrentTenantRequest) returns (GetTenantResponse);
rpc GetAllTenants(ListTenantRequest) returns (ListProjectsResponse);
rpc SetCurrentTenant(SetCurrentTenantRequest) returns (SetCurrentTenantResponse);
}