From bf09eb82fedfaf3cfa4fcc4b0e978b3feb71701b Mon Sep 17 00:00:00 2001 From: Carlos Sosa Date: Mon, 22 Jun 2020 12:27:40 -0700 Subject: Added db package and Item struct --- api/api.proto | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'api') diff --git a/api/api.proto b/api/api.proto index 2c6c20d..796e34b 100644 --- a/api/api.proto +++ b/api/api.proto @@ -7,6 +7,14 @@ message PingMessage { string greeting = 1; } +message Item { + int32 id = 1 + string field = 2; + string field2 = 3; + google.protobuf.Timestamp created = 5; + google.protobuf.Timestamp last_updated = 5; +} + service Ping { rpc SayHello(PingMessage) returns (PingMessage) { option (google.api.http) = { @@ -14,4 +22,4 @@ service Ping { body: "*" }; } -} \ No newline at end of file +} -- cgit v1.3-2-g0d8e