add a result. maybe this should be called 'response'

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-10 11:57:24 -07:00
parent a7a356697b
commit b5cb16b14f
1 changed files with 14 additions and 9 deletions

View File

@ -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;
}