project_management.proto 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. syntax = "proto3";
  2. import "v1/project.proto";
  3. import "v1/vehicle.proto";
  4. import "v1/dust.proto";
  5. import "v1/staff.proto";
  6. import "v1/alarm.proto";
  7. import "v1/camera.proto";
  8. import "v1/tower.proto";
  9. // package声明符,用来防止不同的消息类型有命名冲突
  10. package pb;
  11. // 用于生成指定语言go的包名称
  12. option go_package = "smart-site-management-gateway/pb";
  13. service SmartSiteProject {
  14. // 登录
  15. rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
  16. rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
  17. rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
  18. rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
  19. rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
  20. // 更新项目内容
  21. rpc ProjectChange(v1.ProjectChangeRequest) returns (v1.ProjectChangeReply) {}
  22. rpc ProjectInfoForChange(v1.ProjectInfoForChangeRequest) returns (v1.ProjectInfoForChangeReply) {}
  23. rpc ProjectChangeInfoList(v1.ProjectChangeInfoListRequest) returns (v1.ProjectChangeInfoListReply) {}
  24. // 设备列表
  25. rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
  26. // 获取设备绑定的摄像头
  27. rpc DeviceVideoChannel(v1.DeviceVideoChannelRequest) returns (v1.DeviceVideoChannelReply) {}
  28. // 设备确认接口
  29. rpc DeviceApprove(v1.DeviceApproveRequest) returns (v1.DeviceApproveReply) {}
  30. // 摄像头列表
  31. rpc CameraList(v1.CameraListRequest) returns (v1.CameraListReply) {}
  32. rpc ChannelUpdate(v1.ChannelUpdateRequest) returns (v1.ChannelUpdateReply) {}
  33. // 设备绑定摄像头
  34. rpc DeviceBindCamera(v1.DeviceBindCameraRequest) returns (v1.DeviceBindCameraReply) {}
  35. // 设备解绑摄像头
  36. rpc DeviceUnbindCamera(v1.DeviceUnbindCameraRequest) returns (v1.DeviceUnbindCameraReply) {}
  37. // 车辆进出场列表
  38. rpc VehicleList(v1.VehicleListRequest) returns (v1.VehicleListReply) {}
  39. // 最近一次人员考勤数据
  40. rpc LatestStaffData(v1.LatestStaffDataRequest) returns (v1.LatestStaffDataReply) {}
  41. rpc StaffList(v1.StaffListRequest) returns (v1.StaffListReply) {}
  42. rpc StaffAttendance(v1.StaffAttendanceRequest) returns (v1.StaffAttendanceReply) {}
  43. // 员工工种统计
  44. rpc StaffWorkTypeStatistics(v1.StaffWorkTypeStatisticsRequest) returns (v1.StaffWorkTypeStatisticsReply) {}
  45. // 员工类型统计
  46. rpc StaffTypeStatistics(v1.StaffTypeStatisticsRequest) returns (v1.StaffTypeStatisticsReply) {}
  47. // 员工劳务公司统计
  48. rpc LaborCompanyStatistics(v1.LaborCompanyStatisticsRequest) returns (v1.LaborCompanyStatisticsReply) {}
  49. // 最近一次扬尘监控数据
  50. rpc LatestDustMonitorData(v1.LatestDustMonitorDataRequest) returns (v1.LatestDustMonitorDataReply) {}
  51. // 扬尘监控历史数据
  52. rpc DustMonitorHistory(v1.DustMonitorHistoryRequest) returns (v1.DustMonitorHistoryReply) {}
  53. // 扬尘设备列表
  54. rpc DustList(v1.DustListRequest) returns (v1.DustListReply) {}
  55. // 最近一次塔吊数据
  56. rpc LatestTowerMonitorData(v1.LatestTowerMonitorDataRequest) returns (v1.LatestTowerMonitorDataReply) {}
  57. // 塔吊历史数据
  58. rpc TowerMonitorHistory(v1.TowerMonitorHistoryRequest) returns (v1.TowerMonitorHistoryReply) {}
  59. // iot设备列表
  60. rpc IotList(v1.IotListRequest) returns (v1.IotListReply) {}
  61. rpc IotLast(v1.IotLastRequest) returns (v1.IotLastReply) {}
  62. // iot设备类型列表
  63. rpc IotTypeList(v1.IotTypeListRequest) returns (v1.IotTypeListReply) {}
  64. // aqi
  65. rpc DustAqi(v1.DustAqiRequest) returns (v1.DustAqiReply) {}
  66. // 获取告警信息列表
  67. rpc AlarmList(v1.AlarmListRequest) returns (v1.AlarmListReply) {}
  68. // 视频监控通道列表
  69. rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
  70. // 视频监控视频列表
  71. rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
  72. // 获取视频监控播放地址
  73. rpc RealPlay(v1.RealPlayRequest) returns (v1.RealPlayReply) {}
  74. // 视频监控ptz控制
  75. rpc Ptz(v1.PtzRequest) returns (v1.PtzReply) {}
  76. // 保持监控在线
  77. rpc VedioPing(v1.VedioPingRequest) returns (v1.VedioPingReply) {}
  78. // 修改用户密码
  79. rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
  80. // 工程信息
  81. rpc ProjectInfo(v1.ProjectInfoRequest) returns (v1.ProjectInfoReply){}
  82. // 设置工程平面图或效果图
  83. rpc ProjectSetPic(v1.ProjectSetPicRequest) returns (v1.ProjectSetPicReply){}
  84. // 修改工程名或地址,不需审批
  85. rpc ProjectUpdate(v1.ProjectUpdateRequest) returns (v1.ProjectUpdateReply){}
  86. // 项目设备统计
  87. rpc ProjectDeviceStatistics(v1.ProjectDeviceStatisticsRequest) returns (v1.ProjectDeviceStatisticsReply){}
  88. // 项目工程进度
  89. rpc ProjectProgress(v1.ProjectProgressRequest) returns (v1.ProjectProgressReply){}
  90. // 添加项目工程进度
  91. rpc ProjectProgressAdd(v1.ProjectProgressAddRequest) returns (v1.ProjectProgressAddReply){}
  92. // 项目工程阶段完成
  93. rpc ProjectProgressSet(v1.ProjectProgressSetRequest) returns (v1.ProjectProgressSetReply){}
  94. // 删除项目工程进度
  95. rpc ProjectProgressDel(v1.ProjectProgressDelRequest) returns (v1.ProjectProgressDelReply){}
  96. // 告警规则设置
  97. // 告警规则添加
  98. rpc AlarmRuleAdd(v1.AlarmRuleAddRequest)returns (v1.AlarmRuleAddReply){}
  99. // 告警规则列表
  100. rpc AlarmRuleList(v1.AlarmRuleListRequest)returns (v1.AlarmRuleListReply){}
  101. // 告警规则删除
  102. rpc AlarmRuleDelete(v1.AlarmRuleDeleteRequest)returns (v1.AlarmRuleDeleteReply){}
  103. // 告警规则开关
  104. rpc AlarmRuleOnOff(v1.AlarmRuleOnOffRequest)returns (v1.AlarmRuleOnOffReply){}
  105. // 告警规则更新
  106. rpc AlarmRuleUpdate(v1.AlarmRuleUpdateRequest)returns (v1.AlarmRuleUpdateReply){}
  107. // 告警推送设置
  108. // 告警联系人添加
  109. rpc AlarmContactAdd(v1.AlarmContactAddRequest)returns (v1.AlarmContactAddReply){}
  110. // 告警联系人列表
  111. rpc AlarmContactList(v1.AlarmContactListRequest)returns (v1.AlarmContactListReply){}
  112. // 告警联系人删除
  113. rpc AlarmContactDelete(v1.AlarmContactDeleteRequest)returns (v1.AlarmContactDeleteReply){}
  114. // 告警联系人更新
  115. rpc AlarmContactUpdate(v1.AlarmContactUpdateRequest)returns (v1.AlarmContactUpdateReply){}
  116. }