Commit: Bulk unfinished work

This commit is contained in:
2026-01-22 17:39:04 +01:00
parent 6c46b4efcc
commit 3a9acc42a2
68 changed files with 5047 additions and 1064 deletions

View File

@@ -0,0 +1,48 @@
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);
}