Files
komp_ac/common/proto/tables_data.proto
2025-03-03 23:43:43 +01:00

36 lines
734 B
Protocol Buffer

// common/proto/tables_data.proto
syntax = "proto3";
package multieko2.tables_data;
import "common.proto";
service TablesData {
rpc PostTableData (PostTableDataRequest) returns (PostTableDataResponse);
rpc PutTableData (PutTableDataRequest) returns (PutTableDataResponse);
}
message PostTableDataRequest {
string profile_name = 1;
string table_name = 2;
map<string, string> data = 3;
}
message PostTableDataResponse {
bool success = 1;
string message = 2;
int64 inserted_id = 3;
}
message PutTableDataRequest {
string profile_name = 1;
string table_name = 2;
int64 id = 3;
map<string, string> data = 4;
}
message PutTableDataResponse {
bool success = 1;
string message = 2;
int64 updated_id = 3;
}