syntax = "proto3"; package dfs.facility.brick; option go_package = "cnlab.net/csst/proto/facility/brick"; import "common/error.proto"; service BrickSrv { rpc Find(FindBrickReq) returns (FindBrickResp) {} rpc Get(GetBrickReq) returns (GetBrickResp) {} rpc Write(WriteBrickReq) returns (WriteBrickResp) {} rpc FindObsStatus(FindObsStatusReq) returns (FindObsStatusResp) {} rpc FindLevel1(FindLevel1Req) returns (FindLevel1Resp) {} } message BrickRecord { int64 id = 1; float ra = 2; float dec = 3; string boundingbox = 4; } message BrickObsStatusRecord { int64 brick_id = 1; string band = 2; int32 cover_num = 3; string update_time = 4; } message BrickLevel1Record { int64 brick_id = 1; int64 level1_id = 2; string obs_id = 3; string module = 4; string obs_time = 5; } message FindBrickReq { int32 limit = 1; map other_conditions = 2; } message FindBrickResp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated BrickRecord records = 4; } message GetBrickReq { int64 id = 1; } message GetBrickResp { BrickRecord record = 1; } message WriteBrickReq { BrickRecord record = 1; } message WriteBrickResp { bool success = 1; common.Error error = 2; BrickRecord record = 3; } message FindObsStatusReq { int64 brick_id = 1; string band = 2; int32 limit = 3; map other_conditions = 4; } message FindObsStatusResp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated BrickObsStatusRecord records = 4; } message FindLevel1Req { int64 brick_id = 1; int64 level1_id = 2; string module = 3; int32 limit = 4; } message FindLevel1Resp { bool success = 1; int32 totalCount = 2; common.Error error = 3; repeated BrickLevel1Record records = 4; }