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