add building way interface
This commit is contained in:
20
proto/building.proto
Normal file
20
proto/building.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package main;
|
||||
|
||||
option go_package = ".;main";
|
||||
|
||||
|
||||
import "base.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
// The greeting service definition.
|
||||
service Building {
|
||||
// Sends a greeting
|
||||
rpc Name (Request) returns (Reply){
|
||||
option (google.api.http) = {
|
||||
post: "/v1/building/name"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,8 @@ package main;
|
||||
|
||||
option go_package = ".;main";
|
||||
|
||||
|
||||
import "base.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
import "base.proto";
|
||||
|
||||
// The greeting service definition.
|
||||
service ProvinceAreaCity {
|
||||
|
||||
18
proto/way.proto
Normal file
18
proto/way.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package main;
|
||||
|
||||
option go_package = ".;main";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "base.proto";
|
||||
|
||||
// The greeting service definition.
|
||||
service Way {
|
||||
rpc Name (Request) returns (Reply){
|
||||
option (google.api.http) = {
|
||||
post: "/v1/way/name"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user