1234567891011121314151617181920 |
- syntax = "proto3";
- import "v1/thirdparty.proto";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb;
- // 用于生成指定语言go的包名称
- option go_package = "dust-monitor/pb";
- service SmartSiteThirdparty {
- // 实时天气情况
- rpc WeatherCondition(v1.WeatherConditionRequest) returns (v1.WeatherConditionReply){}
- // 获取实时空气质量
- rpc WeatherEnviroment(v1.WeatherEnviromentRequest) returns (v1.WeatherEnviromentReply){}
- rpc WeatherForecast15(v1.WeatherForecast15Request) returns (v1.WeatherForecast15Reply){}
- }
|