@lean2708/shared-grpc-contracts 1.1.1 → 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
|
@@ -12,14 +12,14 @@ service VariantService {
|
|
|
12
12
|
returns (GetVariantForFlashSaleResponse);
|
|
13
13
|
|
|
14
14
|
rpc GetVariantForCart(GetVariantForCartRequest)
|
|
15
|
-
returns (
|
|
15
|
+
returns (GetVariantForCartResponse);
|
|
16
16
|
|
|
17
|
-
rpc
|
|
18
|
-
returns (
|
|
17
|
+
rpc GetMultipleVariantsForCart(GetMultipleVariantsForCartRequest)
|
|
18
|
+
returns (GetMultipleVariantsForCartResponse);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
// ==================== FLASH SALE ====================
|
|
22
|
+
|
|
23
23
|
message GetVariantForFlashSaleRequest {
|
|
24
24
|
|
|
25
25
|
int64 product_id = 1;
|
|
@@ -38,8 +38,8 @@ message GetVariantForFlashSaleResponse {
|
|
|
38
38
|
bool available = 4;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
// ==================== CART ====================
|
|
42
|
+
|
|
43
43
|
message GetVariantForCartRequest {
|
|
44
44
|
|
|
45
45
|
int64 product_id = 1;
|
|
@@ -47,12 +47,7 @@ message GetVariantForCartRequest {
|
|
|
47
47
|
int64 variant_id = 2;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
message
|
|
51
|
-
|
|
52
|
-
repeated int64 variant_ids = 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message CartVariantInfo {
|
|
50
|
+
message GetVariantForCartResponse {
|
|
56
51
|
|
|
57
52
|
int64 product_id = 1;
|
|
58
53
|
|
|
@@ -77,7 +72,12 @@ message CartVariantInfo {
|
|
|
77
72
|
string shop_avatar_url = 11;
|
|
78
73
|
}
|
|
79
74
|
|
|
80
|
-
message
|
|
75
|
+
message GetMultipleVariantsForCartRequest {
|
|
76
|
+
|
|
77
|
+
repeated int64 variant_ids = 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message GetMultipleVariantsForCartResponse {
|
|
81
81
|
|
|
82
|
-
repeated
|
|
82
|
+
repeated GetVariantForCartResponse variants = 1;
|
|
83
83
|
}
|