syntax = "proto3"; package dfs.sls.level2spectra; option go_package = "cnlab.net/csst/proto/sls/level2spectra"; import "common/error.proto"; service Level2spectraSrv { rpc Find(FindLevel2spectraReq) returns (FindLevel2spectraResp) {} rpc Get(GetLevel2spectraReq) returns (GetLevel2spectraResp) {} rpc Write(stream WriteLevel2spectraReq) returns (WriteLevel2spectraResp) {} rpc UpdateQc2Status(UpdateQc2StatusReq) returns (UpdateQc2StatusResp) {} rpc UpdateProcStatus(UpdateProcStatusReq) returns (UpdateProcStatusResp) {} } message Level2spectraRecord { int64 id = 1; string level0_id = 2; int64 level1_id = 3; string file_type = 4; string filename = 5; string file_path = 6; int32 qc2_status = 7; string qc2_time = 8; int32 prc_status = 9; string prc_time = 10; string create_time = 11; string pipeline_id = 12; } message FindLevel2spectraReq { string level0_id = 1; int64 level1_id = 2; int64 file_type = 3; string create_time_start = 4; string create_time_end = 5; int32 qc2_status = 6; int32 prc_status = 7; string filename = 8; int32 limit = 9; map other_conditions = 10; } message FindLevel2spectraResp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated Level2spectraRecord records = 4; } message GetLevel2spectraReq { int64 id = 1; } message GetLevel2spectraResp { Level2spectraRecord record = 1; } message WriteLevel2spectraReq { Level2spectraRecord record = 1; bytes data = 2; } message WriteLevel2spectraResp { bool success = 1; common.Error error = 2; Level2spectraRecord record = 3; } message UpdateQc2StatusReq { int64 id = 1; int32 status = 2; } message UpdateQc2StatusResp { bool success = 1; common.Error error = 2; } message UpdateProcStatusReq { int64 id = 1; int32 status = 2; } message UpdateProcStatusResp { bool success = 1; common.Error error = 2; }