完善省区的接口

This commit is contained in:
huangsimin
2020-05-20 16:51:40 +08:00
parent 0466440519
commit 95a9ba87ce
6 changed files with 372 additions and 22 deletions

View File

@@ -26,6 +26,13 @@ service ProvinceAreaCity {
};
}
rpc AreaParent (Request) returns (NameCodeParentReply){
option (google.api.http) = {
post: "/v1/area/namecode/parent"
body: "*"
};
}
rpc City (Request) returns (NameCodeReply){
option (google.api.http) = {
post: "/v1/city/namecode"
@@ -33,6 +40,13 @@ service ProvinceAreaCity {
};
}
rpc CityParent (Request) returns (NameCodeParentReply){
option (google.api.http) = {
post: "/v1/city/namecode/parent"
body: "*"
};
}
// rpc CityParent (Request) returns (NameCodeReply){
// option (google.api.http) = {
// post: "/v1/city/namecode/parent"
@@ -41,6 +55,12 @@ service ProvinceAreaCity {
// }
}
// The response message containing the greetings
message NameCodeParentReply {
string name = 1;
string code = 2;
NameCodeParentReply parent = 3;
}
// The response message containing the greetings
message NameCodeReply {