Files
Ilya Groshev 02f511f40c Initial commit
2026-04-14 09:28:26 +03:00

38 lines
861 B
Protocol Buffer

syntax = "proto3";
option go_package = "lunar-tear/server/gen/proto;proto";
import "google/protobuf/empty.proto";
package apb.api.data;
service DataService {
rpc GetLatestMasterDataVersion (google.protobuf.Empty) returns (MasterDataGetLatestVersionResponse);
rpc GetUserDataNameV2 (google.protobuf.Empty) returns (UserDataGetNameResponseV2);
rpc GetUserData (UserDataGetRequest) returns (UserDataGetResponse);
}
message DiffData {
string updateRecordsJson = 1;
string deleteKeysJson = 2;
}
message MasterDataGetLatestVersionResponse {
string latestMasterDataVersion = 1;
}
message UserDataGetNameResponseV2 {
repeated TableNameList tableNameList = 1;
}
message TableNameList {
repeated string tableName = 1;
}
message UserDataGetRequest {
repeated string tableName = 1;
}
message UserDataGetResponse {
map<string, string> userDataJson = 1;
}