@lean2708/shared-grpc-contracts 1.0.8 → 1.1.0
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
|
@@ -14,6 +14,9 @@ service ShopService {
|
|
|
14
14
|
rpc GetShopsByIds(GetShopsByIdsRequest)
|
|
15
15
|
returns (GetShopsByIdsResponse);
|
|
16
16
|
|
|
17
|
+
rpc CanManageShopVoucher(CanManageShopVoucherRequest)
|
|
18
|
+
returns (CanManageShopVoucherResponse);
|
|
19
|
+
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
message ExistsShopRequest {
|
|
@@ -48,4 +51,17 @@ message ShopSummary {
|
|
|
48
51
|
|
|
49
52
|
string avatar_url = 3;
|
|
50
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;
|
|
51
67
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package shared.variant.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.shared.grpc.variant";
|
|
7
|
+
option java_outer_classname = "VariantProto";
|
|
8
|
+
|
|
9
|
+
service VariantService {
|
|
10
|
+
|
|
11
|
+
rpc GetVariantForFlashSale(GetVariantForFlashSaleRequest)
|
|
12
|
+
returns (GetVariantForFlashSaleResponse);
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetVariantForFlashSaleRequest {
|
|
17
|
+
|
|
18
|
+
int64 product_id = 1;
|
|
19
|
+
|
|
20
|
+
int64 variant_id = 2;
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message GetVariantForFlashSaleResponse {
|
|
25
|
+
|
|
26
|
+
int64 product_id = 1;
|
|
27
|
+
|
|
28
|
+
int64 variant_id = 2;
|
|
29
|
+
|
|
30
|
+
string price = 3;
|
|
31
|
+
|
|
32
|
+
bool available = 4;
|
|
33
|
+
|
|
34
|
+
}
|