syntax = "proto3"; package dfs.facility.otherdata; option go_package = "cnlab.net/csst/proto/facility/otherdata"; import "common/error.proto"; service OtherDataSrv { rpc Find(FindOtherDataReq) returns (FindOtherDataResp) {} rpc Get(GetOtherDataReq) returns (GetOtherDataResp) {} rpc Write(stream WriteOtherDataReq) returns (WriteOtherDataResp) {} } message OtherDataRecord { int64 id = 1; string obs_id = 2; string detector_no = 3; string module_id = 4; string file_type = 5; string filename = 6; string file_path = 7; string create_time = 8; string pipeline_id = 9; } message FindOtherDataReq { string obs_id = 1; string module_id = 2; string detector_no = 3; string file_type = 4; string filename = 5; string create_time_start = 6; string create_time_end = 7; string pipeline_id = 8; int32 limit = 9; } message FindOtherDataResp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated OtherDataRecord records = 4; } message GetOtherDataReq { int64 id = 1; } message GetOtherDataResp { OtherDataRecord record = 1; } message WriteOtherDataReq { OtherDataRecord record = 1; bytes data = 2; } message WriteOtherDataResp { bool success = 1; common.Error error = 2; OtherDataRecord record = 3; }