syntax = "proto3";

package thing;

service ThingService {
  rpc getUserThingsByType(Query) returns (Things) {}
}
message Query {
    string userid = 1;
    string type = 2;
    repeated string enterprises = 3;
}

message Things {
  string userid = 1;
  repeated string things = 2;
}