@lean2708/shared-grpc-contracts 1.0.7 → 1.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lean2708/shared-grpc-contracts",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Shared gRPC Protocol Buffer contracts",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,67 @@
1
+ syntax = "proto3";
2
+
3
+ package shared.shop.v1;
4
+
5
+ option java_multiple_files = true;
6
+ option java_package = "com.shared.grpc.shop";
7
+ option java_outer_classname = "ShopProto";
8
+
9
+ service ShopService {
10
+
11
+ rpc ExistsShopById(ExistsShopRequest)
12
+ returns (ExistsShopResponse);
13
+
14
+ rpc GetShopsByIds(GetShopsByIdsRequest)
15
+ returns (GetShopsByIdsResponse);
16
+
17
+ rpc CanManageShopVoucher(CanManageShopVoucherRequest)
18
+ returns (CanManageShopVoucherResponse);
19
+
20
+ }
21
+
22
+ message ExistsShopRequest {
23
+
24
+ int64 shop_id = 1;
25
+
26
+ }
27
+
28
+ message ExistsShopResponse {
29
+
30
+ bool exists = 1;
31
+
32
+ }
33
+
34
+ message GetShopsByIdsRequest {
35
+
36
+ repeated int64 shop_ids = 1;
37
+
38
+ }
39
+
40
+ message GetShopsByIdsResponse {
41
+
42
+ repeated ShopSummary shops = 1;
43
+
44
+ }
45
+
46
+ message ShopSummary {
47
+
48
+ int64 id = 1;
49
+
50
+ string name = 2;
51
+
52
+ string avatar_url = 3;
53
+
54
+ }
55
+
56
+ message CanManageShopVoucherRequest {
57
+
58
+ int64 shop_id = 1;
59
+
60
+ string user_id = 2;
61
+
62
+ }
63
+
64
+ message CanManageShopVoucherResponse {
65
+
66
+ bool allowed = 1;
67
+ }
@@ -1,39 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package shared.booking.v1;
4
-
5
- option java_multiple_files = true;
6
- option java_package = "com.shared.grpc.booking.v1";
7
- option java_outer_classname = "BookingPaymentProto";
8
-
9
- service BookingPaymentService {
10
-
11
- rpc GetBookingPaymentInfo(BookingPaymentInfoRequest)
12
- returns (BookingPaymentInfoResponse);
13
-
14
- }
15
-
16
- message BookingPaymentInfoRequest {
17
- int64 booking_id = 1;
18
- }
19
-
20
- message BookingPaymentInfoResponse {
21
-
22
- bool success = 1;
23
-
24
- BookingPaymentInfo booking = 2;
25
-
26
- }
27
-
28
- message BookingPaymentInfo {
29
-
30
- int64 booking_id = 1;
31
-
32
- string booking_code = 2;
33
-
34
- string user_id = 3;
35
-
36
- string booking_status = 4;
37
-
38
- string total_amount = 5;
39
- }