@lean2708/shared-grpc-contracts 1.1.4 → 1.1.6
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
|
@@ -6,36 +6,42 @@ option java_multiple_files = true;
|
|
|
6
6
|
option java_package = "com.shared.grpc.address";
|
|
7
7
|
option java_outer_classname = "AddressProto";
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
service AddressService {
|
|
10
11
|
|
|
11
|
-
rpc GetUserShippingAddress(
|
|
12
|
-
|
|
13
|
-
) returns (GetUserShippingAddressResponse);
|
|
12
|
+
rpc GetUserShippingAddress(GetUserShippingAddressRequest)
|
|
13
|
+
returns (GetUserShippingAddressResponse);
|
|
14
14
|
|
|
15
|
-
rpc ResolveAdministrativeAddress(
|
|
16
|
-
|
|
17
|
-
) returns (ResolveAdministrativeAddressResponse);
|
|
15
|
+
rpc ResolveAdministrativeAddress(ResolveAdministrativeAddressRequest)
|
|
16
|
+
returns (ResolveAdministrativeAddressResponse);
|
|
18
17
|
}
|
|
19
18
|
|
|
19
|
+
|
|
20
20
|
message GetUserShippingAddressRequest {
|
|
21
21
|
string user_id = 1;
|
|
22
|
+
|
|
22
23
|
int64 address_id = 2;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
message GetUserShippingAddressResponse {
|
|
26
27
|
int64 address_id = 1;
|
|
28
|
+
|
|
27
29
|
string province = 2;
|
|
28
30
|
string ward = 3;
|
|
29
31
|
string detail_address = 4;
|
|
32
|
+
|
|
30
33
|
string recipient_phone = 5;
|
|
31
34
|
}
|
|
32
35
|
|
|
36
|
+
|
|
33
37
|
message ResolveAdministrativeAddressRequest {
|
|
34
38
|
int64 province_id = 1;
|
|
39
|
+
|
|
35
40
|
string ward_code = 2;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
message ResolveAdministrativeAddressResponse {
|
|
39
44
|
string province = 1;
|
|
45
|
+
|
|
40
46
|
string ward = 2;
|
|
41
47
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package shared.checkout.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.shared.grpc.checkout";
|
|
7
|
+
option java_outer_classname = "CheckoutVariantProto";
|
|
8
|
+
|
|
9
|
+
service CheckoutVariantService {
|
|
10
|
+
|
|
11
|
+
rpc GetCheckoutVariants(GetCheckoutVariantsRequest)
|
|
12
|
+
returns (GetCheckoutVariantsResponse);
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetCheckoutVariantsRequest {
|
|
17
|
+
|
|
18
|
+
repeated int64 variant_ids = 1;
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message CheckoutVariantInfo {
|
|
23
|
+
|
|
24
|
+
int64 variant_id = 1;
|
|
25
|
+
|
|
26
|
+
int64 product_id = 2;
|
|
27
|
+
|
|
28
|
+
int64 shop_id = 3;
|
|
29
|
+
|
|
30
|
+
int64 unit_price = 4;
|
|
31
|
+
|
|
32
|
+
int64 available_quantity = 5;
|
|
33
|
+
|
|
34
|
+
bool available = 6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message GetCheckoutVariantsResponse {
|
|
38
|
+
|
|
39
|
+
repeated CheckoutVariantInfo variants = 1;
|
|
40
|
+
|
|
41
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 = "ShopPickupProto";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
service ShopPickupService {
|
|
11
|
+
|
|
12
|
+
rpc GetShopPickupAddresses(GetShopPickupAddressesRequest)
|
|
13
|
+
returns (GetShopPickupAddressesResponse);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetShopPickupAddressesRequest {
|
|
17
|
+
|
|
18
|
+
repeated int64 shop_ids = 1;
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message ShopPickupAddressResponse {
|
|
23
|
+
int64 shop_id = 1;
|
|
24
|
+
|
|
25
|
+
int64 province_id = 2;
|
|
26
|
+
string ward_code = 3;
|
|
27
|
+
|
|
28
|
+
string detail_address = 4;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
message GetShopPickupAddressesResponse {
|
|
33
|
+
|
|
34
|
+
repeated ShopPickupAddressResponse addresses = 1;
|
|
35
|
+
|
|
36
|
+
}
|