smart_thirdparty.proto 606 B

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