user can adjust data with versioning from now on

This commit is contained in:
Priec
2026-07-07 23:50:44 +02:00
parent 80a61eebc6
commit 2688776f52
4 changed files with 134 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package komp_ac.document_data;
service DocumentDataService {
rpc SaveGeneratedPrintJson(SaveGeneratedPrintJsonRequest) returns (SaveGeneratedPrintJsonResponse);
rpc SaveUserAdjustedPrintJson(SaveUserAdjustedPrintJsonRequest) returns (SaveUserAdjustedPrintJsonResponse);
}
message SourceRecord {
@@ -26,3 +27,19 @@ message SaveGeneratedPrintJsonResponse {
int64 snapshot_id = 2;
int32 version_number = 3;
}
message SaveUserAdjustedPrintJsonRequest {
int64 document_run_id = 1;
optional int64 schema_id = 2;
repeated SourceRecord source_records = 3;
optional string template_name = 4;
optional string template_kind = 5;
optional string template_path = 6;
string data_json = 7;
}
message SaveUserAdjustedPrintJsonResponse {
int64 document_run_id = 1;
int64 snapshot_id = 2;
int32 version_number = 3;
}