add a result. maybe this should be called 'response'
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a7a356697b
commit
b5cb16b14f
23
events.proto
23
events.proto
|
@ -1,5 +1,5 @@
|
|||
syntax = "proto3";
|
||||
package witProto;
|
||||
package witProtobuf;
|
||||
|
||||
enum EventType {
|
||||
ADD = 0;
|
||||
|
@ -10,15 +10,20 @@ enum EventType {
|
|||
MIGRATE = 5;
|
||||
}
|
||||
|
||||
message Event {
|
||||
EventType type = 1;
|
||||
string label = 2;
|
||||
int32 id = 3;
|
||||
repeated int64 reps = 4;
|
||||
}
|
||||
|
||||
message Result {
|
||||
string url = 1;
|
||||
string title = 2;
|
||||
string name = 1;
|
||||
string error = 2;
|
||||
repeated string snippets = 3;
|
||||
}
|
||||
|
||||
message Event {
|
||||
EventType type = 1;
|
||||
int32 id = 2;
|
||||
Result result = 3;
|
||||
string name = 4;
|
||||
|
||||
string comment = 5;
|
||||
string email = 6;
|
||||
repeated int64 reps = 7;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue