From 8dd77c99692c25749dc2cba00a7a85528246209c Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 15 Apr 2026 07:24:12 +0300 Subject: [PATCH] feat: add theater proto --- proto/theater.proto | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 proto/theater.proto diff --git a/proto/theater.proto b/proto/theater.proto new file mode 100644 index 0000000..83e298c --- /dev/null +++ b/proto/theater.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package theater.v1; + +import "google/protobuf/empty.proto"; + +service TheaterService { + rpc ListTheater(google.protobuf.Empty) returns (ListTheaterResponse); + rpc GetTheater(GetTheaterRequest) returns (GetTheaterResponse); + rpc CreateTheater(CreateTheaterRequest) returns (CreateTheaterResponse); +} + +message ListTheaterResponse { + repeated Theater theaters = 1; +} + +message GetTheaterRequest { + string id = 1; +} + +message GetTheaterResponse { + Theater theater = 1; +} + +message CreateTheaterRequest { + string name = 1; + string address = 2; +} +message CreateTheaterResponse { + bool ok = 1; +} + +message Theater { + string id = 1; + string name = 2; + string address = 3; +}