@stackcine/contracts 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/ts/hall.ts +3 -4
- package/package.json +1 -1
- package/proto/hall.proto +1 -3
package/gen/ts/hall.ts
CHANGED
|
@@ -40,7 +40,6 @@ export interface Hall {
|
|
|
40
40
|
id: string;
|
|
41
41
|
name: string;
|
|
42
42
|
theaterId: string;
|
|
43
|
-
layout: RowLayout[];
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
export interface RowLayout {
|
|
@@ -57,7 +56,7 @@ export interface HallServiceClient {
|
|
|
57
56
|
|
|
58
57
|
getHall(request: GetHallRequest): Observable<GetHallResponse>;
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
listHallsByTheater(request: ListHallsRequest): Observable<ListHallsResponse>;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
export interface HallServiceController {
|
|
@@ -67,14 +66,14 @@ export interface HallServiceController {
|
|
|
67
66
|
|
|
68
67
|
getHall(request: GetHallRequest): Promise<GetHallResponse> | Observable<GetHallResponse> | GetHallResponse;
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
listHallsByTheater(
|
|
71
70
|
request: ListHallsRequest,
|
|
72
71
|
): Promise<ListHallsResponse> | Observable<ListHallsResponse> | ListHallsResponse;
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
export function HallServiceControllerMethods() {
|
|
76
75
|
return function (constructor: Function) {
|
|
77
|
-
const grpcMethods: string[] = ["createHall", "getHall", "
|
|
76
|
+
const grpcMethods: string[] = ["createHall", "getHall", "listHallsByTheater"];
|
|
78
77
|
for (const method of grpcMethods) {
|
|
79
78
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
80
79
|
GrpcMethod("HallService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/hall.proto
CHANGED
|
@@ -4,9 +4,8 @@ package hall.v1;
|
|
|
4
4
|
|
|
5
5
|
service HallService {
|
|
6
6
|
rpc CreateHall (CreateHallRequest) returns (CreateHallResponse);
|
|
7
|
-
|
|
8
7
|
rpc GetHall (GetHallRequest) returns (GetHallResponse);
|
|
9
|
-
rpc
|
|
8
|
+
rpc ListHallsByTheater (ListHallsRequest) returns (ListHallsResponse);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
message CreateHallRequest {
|
|
@@ -39,7 +38,6 @@ message Hall {
|
|
|
39
38
|
string id = 1;
|
|
40
39
|
string name = 2;
|
|
41
40
|
string theater_id = 3;
|
|
42
|
-
repeated RowLayout layout = 4;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
message RowLayout {
|