Compare commits

...

2 Commits

Author SHA1 Message Date
67f2fc6472 1.3.0
All checks were successful
Publish / Publish npm package action (push) Successful in 45s
Publish Go Bondings / Publish Go package action (push) Successful in 1m22s
2026-04-15 07:24:22 +03:00
8dd77c9969 feat: add theater proto 2026-04-15 07:24:12 +03:00
2 changed files with 38 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@teacinema/contracts",
"version": "1.2.3",
"version": "1.3.0",
"description": "Protocol Buffers contracts for microservices",
"scripts": {
"build": "tsc -p tsconfig.build.json",

37
proto/theater.proto Normal file
View File

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