smart_auth.proto 1000 B

12345678910111213141516171819202122232425262728
  1. syntax = "proto3";
  2. import "v1/device.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "smart-auth/pb";
  7. service SmartAuth {
  8. // 获取设备基本信息
  9. rpc DeviceInfo (v1.DeviceInfoRequest) returns (v1.DeviceInfoReply) {}
  10. rpc DeviceInfoById (v1.DeviceInfoByIdRequest) returns (v1.DeviceInfoByIdReply) {}
  11. // 设备状态更新
  12. rpc DeviceStatusUpdate (v1.DeviceStatusUpdateRequest) returns (v1.DeviceStatusUpdateReply) {}
  13. // 设备参数设置
  14. rpc DeviceParamSet (v1.DeviceParamSetRequest) returns (v1.DeviceParamSetReply) {}
  15. // 设备信息变动通知
  16. rpc DeviceChangeNotify(v1.DeviceChangeNotifyRequest) returns (v1.DeviceChangeNotifyReply) {}
  17. // 获取所有扬尘sn码
  18. rpc GetAllDustSn(v1.GetAllDustSnRequest) returns (v1.GetAllDustSnReply) {}
  19. rpc DelDevice(v1.DelDeviceRequest) returns (v1.DelDeviceReply) {}
  20. }