goverment_management.proto 4.5 KB

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