government_management.proto 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. import "v1/supplier.proto";
  3. import "v1/device.proto";
  4. import "v1/user.proto";
  5. import "v1/company.proto";
  6. import "v1/alarm.proto";
  7. import "v1/dust.proto";
  8. import "v1/staff.proto";
  9. // package声明符,用来防止不同的消息类型有命名冲突
  10. package pb;
  11. // 用于生成指定语言go的包名称
  12. option go_package = "smart-government-management-gateway/pb";
  13. service SmartSiteGovernment {
  14. // 设备类型列表
  15. rpc DeviceTypeList(v1.DeviceTypeListRequest) returns (v1.DeviceTypeListReply) {}
  16. // 平台支持得设备类型
  17. rpc DeviceAllTypeList(v1.DeviceAllTypeListRequest) returns (v1.DeviceAllTypeListReply) {}
  18. // 公示列表
  19. rpc Publicity(v1.PublicityRequest) returns (v1.PublicityReply) {}
  20. // 供应商列表
  21. rpc ProviderList(v1.ProviderListRequest) returns (v1.ProviderListReply) {}
  22. // 设备
  23. rpc DeviceList(v1.DeviceListRequest) returns (v1.DeviceListReply) {}
  24. // 供应商注册审批,设备申报审批,设备拆机审批
  25. rpc ProviderApprove(v1.ProviderApproveRequest) returns (v1.ProviderApproveReply) {}
  26. // 登录
  27. rpc Login(v1.LoginRequest) returns (v1.LoginReply) {}
  28. rpc EmailPrepare(v1.EmailPrepareRequest) returns (v1.EmailPrepareReply) {}
  29. rpc EmailUpdate(v1.EmailUpdateRequest) returns (v1.EmailUpdateReply) {}
  30. rpc PhoneUpdate(v1.PhoneUpdateRequest) returns (v1.PhoneUpdateReply) {}
  31. rpc UserInfo(v1.UserInfoRequest) returns (v1.UserInfoReply) {}
  32. // 设备对接测试审批,开发者调用
  33. rpc DockingApprove(v1.DockingApproveRequest) returns (v1.DockingApproveReply) {}
  34. // 企业列表
  35. rpc CompanyList(v1.CompanyListRequest) returns (v1.CompanyListReply) {}
  36. // 项目列表
  37. rpc ProjectList(v1.ProjectListRequest) returns (v1.ProjectListReply) {}
  38. // 项目变更申报列表
  39. rpc ProjectChangeInfoList(v1.ProjectChangeInfoListRequest) returns (v1.ProjectChangeInfoListReply) {}
  40. // 公司注册审批,项目添加审批,项目变更审批
  41. rpc CompanyApprove(v1.CompanyApproveRequest) returns (v1.CompanyApproveReply) {}
  42. // 拆机申请列表
  43. rpc DeviceDelJobList(v1.DeviceDelJobListRequest) returns (v1.DeviceDelJobListReply) {}
  44. rpc ChannelList(v1.ChannelListRequest) returns (v1.ChannelListReply) {}
  45. rpc VedioList(v1.VedioListRequest) returns (v1.VedioListReply) {}
  46. rpc ChangePasswd(v1.ChangePasswdRequest) returns (v1.ChangePasswdReply) {}
  47. rpc SetPhone(v1.SetPhoneRequest) returns (v1.SetPhoneReply) {}
  48. rpc SetPasswd(v1.SetPasswdRequest) returns (v1.SetPasswdReply) {}
  49. rpc DeviceStatistic(v1.DeviceStatisticRequest) returns (v1.DeviceStatisticReply) {}
  50. rpc DeviceTypeStatistic(v1.DeviceTypeStatisticRequest) returns (v1.DeviceTypeStatisticReply) {}
  51. rpc ProjectStatistic(v1.ProjectStatisticRequest) returns (v1.ProjectStatisticReply) {}
  52. rpc ProjectTypeStatistic(v1.ProjectTypeStatisticRequest) returns (v1.ProjectTypeStatisticReply) {}
  53. rpc StaffStatistic(v1.StaffStatisticRequest) returns (v1.StaffStatisticReply) {}
  54. rpc CompanyStatistic(v1.CompanyStatisticRequest) returns (v1.CompanyStatisticReply) {}
  55. rpc AlarmList(v1.AlarmListRequest) returns (v1.AlarmListReply) {}
  56. rpc AlarmHandle(v1.AlarmHandleRequest) returns (v1.AlarmHandleReply) {}
  57. rpc AlarmProject(v1.AlarmProjectRequest) returns (v1.AlarmProjectReply) {}
  58. rpc AlarmReasonStatistic(v1.AlarmReasonStatisticRequest) returns (v1.AlarmReasonStatisticReply) {}
  59. rpc AlarmDeviceStatistic(v1.AlarmDeviceStatisticRequest) returns (v1.AlarmDeviceStatisticReply) {}
  60. rpc AlarmIncreaseStatistic(v1.AlarmIncreaseStatisticRequest) returns (v1.AlarmIncreaseStatisticReply) {}
  61. rpc AlarmPercentStatistic(v1.AlarmPercentStatisticRequest) returns (v1.AlarmPercentStatisticReply) {}
  62. rpc DustAqi(v1.DustAqiRequest) returns (v1.DustAqiReply) {}
  63. // 最近一次扬尘监控数据
  64. rpc LatestDustMonitorData(v1.LatestDustMonitorDataRequest) returns (v1.LatestDustMonitorDataReply) {}
  65. rpc StaffTypeStatistics(v1.StaffTypeStatisticsRequest) returns (v1.StaffTypeStatisticsReply) {}
  66. rpc LaborCompanyStatistics(v1.LaborCompanyStatisticsRequest) returns (v1.LaborCompanyStatisticsReply) {}
  67. rpc StaffWorkTypeStatistics(v1.StaffWorkTypeStatisticsRequest) returns (v1.StaffWorkTypeStatisticsReply) {}
  68. }