完善省区的接口
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user