@usteam/contracts 1.3.2 → 1.3.4
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/seat.ts +4 -4
- package/package.json +1 -1
- package/proto/seat.proto +2 -2
package/gen/ts/seat.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ListSeatsRequest {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface ListSeatsResponse {
|
|
27
|
-
|
|
27
|
+
seats: Seat[];
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export interface Seat {
|
|
@@ -46,7 +46,7 @@ export interface SeatServiceClient {
|
|
|
46
46
|
|
|
47
47
|
/** Получение мест для конкретного сектора */
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
listSeatsBySector(request: ListSeatsRequest): Observable<ListSeatsResponse>;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface SeatServiceController {
|
|
@@ -56,14 +56,14 @@ export interface SeatServiceController {
|
|
|
56
56
|
|
|
57
57
|
/** Получение мест для конкретного сектора */
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
listSeatsBySector(
|
|
60
60
|
request: ListSeatsRequest,
|
|
61
61
|
): Promise<ListSeatsResponse> | Observable<ListSeatsResponse> | ListSeatsResponse;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export function SeatServiceControllerMethods() {
|
|
65
65
|
return function (constructor: Function) {
|
|
66
|
-
const grpcMethods: string[] = ["getSeat", "
|
|
66
|
+
const grpcMethods: string[] = ["getSeat", "listSeatsBySector"];
|
|
67
67
|
for (const method of grpcMethods) {
|
|
68
68
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
69
69
|
GrpcMethod("SeatService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/seat.proto
CHANGED
|
@@ -6,7 +6,7 @@ service SeatService {
|
|
|
6
6
|
// Получение места по id
|
|
7
7
|
rpc GetSeat (GetSeatRequest) returns (GetSeatResponse);
|
|
8
8
|
//Получение мест для конкретного сектора
|
|
9
|
-
rpc
|
|
9
|
+
rpc ListSeatsBySector (ListSeatsRequest) returns (ListSeatsResponse);
|
|
10
10
|
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ message ListSeatsRequest {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
message ListSeatsResponse {
|
|
27
|
-
repeated Seat
|
|
27
|
+
repeated Seat seats = 1;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message Seat {
|