@lean2708/shared-grpc-contracts 1.1.2 → 1.1.3
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,8 +14,8 @@ service VariantService {
|
|
|
14
14
|
rpc GetVariantForCart(GetVariantForCartRequest)
|
|
15
15
|
returns (GetVariantForCartResponse);
|
|
16
16
|
|
|
17
|
-
rpc
|
|
18
|
-
returns (
|
|
17
|
+
rpc GetMultipleVariantsForCart(GetMultipleVariantsForCartRequest)
|
|
18
|
+
returns (GetMultipleVariantsForCartResponse);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// ==================== FLASH SALE ====================
|
|
@@ -25,7 +25,6 @@ message GetVariantForFlashSaleRequest {
|
|
|
25
25
|
int64 product_id = 1;
|
|
26
26
|
|
|
27
27
|
int64 variant_id = 2;
|
|
28
|
-
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
message GetVariantForFlashSaleResponse {
|
|
@@ -40,6 +39,7 @@ message GetVariantForFlashSaleResponse {
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
// ==================== CART ====================
|
|
42
|
+
|
|
43
43
|
message GetVariantForCartRequest {
|
|
44
44
|
|
|
45
45
|
int64 product_id = 1;
|
|
@@ -72,14 +72,12 @@ message GetVariantForCartResponse {
|
|
|
72
72
|
string shop_avatar_url = 11;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
message
|
|
75
|
+
message GetMultipleVariantsForCartRequest {
|
|
76
76
|
|
|
77
77
|
repeated int64 variant_ids = 1;
|
|
78
|
-
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
message
|
|
80
|
+
message GetMultipleVariantsForCartResponse {
|
|
82
81
|
|
|
83
82
|
repeated GetVariantForCartResponse variants = 1;
|
|
84
|
-
|
|
85
83
|
}
|