12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-government-management/pb/v1";
- message TowerMonitorData{
- string date = 1;
- // 回转角度值
- double back_turn = 2;
- // 幅度值
- double scope = 3;
- // 吊钩离地面的距离
- double hight = 4;
- // 吊钩所掉重物的重量
- double weight = 5;
- // 当前力矩所占最大力矩的百分比
- string moment = 6;
- // 电池电量
- string battery = 7;
- // 风速
- double wind_speed = 8;
- // 塔身倾斜度 X 向
- double angle_x = 9;
- // 塔身倾斜度 Y 向
- double angle_y = 10;
- }
- message LatestTowerMonitorDataRequest{
- string sn = 1;
- int32 type = 2;
- }
- message LatestTowerMonitorDataReply{
- TowerMonitorData data = 1;
- }
- message TowerMonitorHistoryRequest{
- string sn = 1;
- int64 start = 2;
- int64 end = 3;
- int32 page = 4;
- int32 page_size = 5;
- }
- message TowerMonitorHistoryReply{
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated TowerMonitorData list = 4;
- }
|