@lean2708/shared-grpc-contracts 1.1.3 → 1.1.4
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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package shared.address.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.shared.grpc.address";
|
|
7
|
+
option java_outer_classname = "AddressProto";
|
|
8
|
+
|
|
9
|
+
service AddressService {
|
|
10
|
+
|
|
11
|
+
rpc GetUserShippingAddress(
|
|
12
|
+
GetUserShippingAddressRequest
|
|
13
|
+
) returns (GetUserShippingAddressResponse);
|
|
14
|
+
|
|
15
|
+
rpc ResolveAdministrativeAddress(
|
|
16
|
+
ResolveAdministrativeAddressRequest
|
|
17
|
+
) returns (ResolveAdministrativeAddressResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message GetUserShippingAddressRequest {
|
|
21
|
+
string user_id = 1;
|
|
22
|
+
int64 address_id = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message GetUserShippingAddressResponse {
|
|
26
|
+
int64 address_id = 1;
|
|
27
|
+
string province = 2;
|
|
28
|
+
string ward = 3;
|
|
29
|
+
string detail_address = 4;
|
|
30
|
+
string recipient_phone = 5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message ResolveAdministrativeAddressRequest {
|
|
34
|
+
int64 province_id = 1;
|
|
35
|
+
string ward_code = 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message ResolveAdministrativeAddressResponse {
|
|
39
|
+
string province = 1;
|
|
40
|
+
string ward = 2;
|
|
41
|
+
}
|