syntax = "proto3"; package dfs.facility.level0prc; option go_package = "cnlab.net/csst/proto/facility/level0prc"; import "common/error.proto"; service Level0PrcSrv { rpc Find(FindLevel0PrcReq) returns (FindLevel0PrcResp) {} rpc Write(WriteLevel0PrcReq) returns (WriteLevel0PrcResp) {} rpc UpdateProcStatus(UpdateProcStatusReq) returns (UpdateProcStatusResp) {} } message Level0PrcRecord { int64 id = 1; string level0_id = 2; string pipeline_id = 3; string prc_module = 4; string params_file_path = 5; int32 prc_status = 6; string prc_time = 7; string result_file_path = 8; } message FindLevel0PrcReq { string level0_id = 1; string pipeline_id = 2; string prc_module = 3; int32 prc_status = 4; map other_conditions = 5; } message FindLevel0PrcResp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated Level0PrcRecord records = 4; } message WriteLevel0PrcReq { Level0PrcRecord record = 1; } message WriteLevel0PrcResp { bool success = 1; common.Error error = 2; Level0PrcRecord record = 3; } message UpdateProcStatusReq { int64 id = 1; int32 status = 2; } message UpdateProcStatusResp { bool success = 1; common.Error error = 2; }