level2spectra.proto 1.83 KB
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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<string,string> 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;
}