device_service.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. syntax = "proto3";
  2. import "v1/device.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "property-system-gateway/pb";
  7. // The system service definition.
  8. service Device {
  9. // 门禁在线
  10. rpc GateOnline(pb_v1.GateOnlineRequest) returns (pb_v1.GateOnlineReply){}
  11. // 门禁入库
  12. rpc GateIn(pb_v1.GateInRequest) returns (pb_v1.GateInReply){}
  13. // 门禁批量入库
  14. rpc GateBatchIn(pb_v1.GateBatchInRequest) returns (pb_v1.GateBatchInReply){}
  15. // 门禁列表
  16. rpc GateList(pb_v1.GateListRequest) returns (pb_v1.GateListReply){}
  17. // 人脸门禁所有id
  18. rpc MqttFaceGate(pb_v1.MqttFaceGateRequest) returns (pb_v1.MqttFaceGateReply){}
  19. // 门禁出库
  20. rpc GateOut(pb_v1.GateOutRequest) returns (pb_v1.GateOutReply){}
  21. // 删除门禁
  22. rpc GateDel(pb_v1.GateDelRequest) returns (pb_v1.GateDelReply){}
  23. // 门禁回收
  24. rpc GateRecovery(pb_v1.GateRecoveryRequest) returns (pb_v1.GateRecoveryReply){}
  25. // 门禁起停用
  26. rpc GateEnable(pb_v1.GateEnableRequest) returns (pb_v1.GateEnableReply){}
  27. // 设置门禁位置和进场出场
  28. rpc GateSet(pb_v1.GateSetRequest) returns (pb_v1.GateSetReply){}
  29. // 添加门禁卡号
  30. rpc GateCardAdd(pb_v1.GateCardAddRequest) returns (pb_v1.GateCardAddReply){}
  31. rpc GateCardDel(pb_v1.GateCardDelRequest) returns (pb_v1.GateCardDelReply){}
  32. // 门禁卡列表
  33. rpc GateCardList(pb_v1.GateCardListRequest) returns (pb_v1.GateCardListReply){}
  34. // 门禁卡下发
  35. rpc GateCardSync(pb_v1.GateCardSyncRequest) returns (pb_v1.GateCardSyncReply){}
  36. // 获取卡还可以绑定的设备
  37. rpc GateCardCanBindDevices(pb_v1.GateCardCanBindDevicesRequest) returns (pb_v1.GateCardCanBindDevicesReply){}
  38. // 获取门禁远程命令
  39. rpc GateCommandUse(pb_v1.GateCommandUseRequest) returns (pb_v1.GateCommandUseReply){}
  40. // 门禁远程命令结果
  41. rpc GateCommandResult(pb_v1.GateCommandResultRequest) returns (pb_v1.GateCommandResultReply){}
  42. // 门禁命令添加
  43. rpc GateCommandAdd(pb_v1.GateCommandAddRequest) returns (pb_v1.GateCommandAddReply){}
  44. // 门禁命令记录
  45. rpc GateCommandList(pb_v1.GateCommandListRequest) returns (pb_v1.GateCommandListReply){}
  46. // 门禁白名单匹配
  47. rpc GateWhiteMatch(pb_v1.GateWhiteMatchRequest) returns (pb_v1.GateWhiteMatchReply){}
  48. // 门禁人脸申请
  49. rpc GateUserPicAdd(pb_v1.GateUserPicAddRequest) returns (pb_v1.GateUserPicAddReply){}
  50. // 门禁人脸审核
  51. rpc GateUserPicApprove(pb_v1.GateUserPicApproveRequest) returns (pb_v1.GateUserPicApproveReply){}
  52. // 获取人脸录入列表
  53. rpc GateUserPicList(pb_v1.GateUserPicListRequest) returns (pb_v1.GateUserPicListReply){}
  54. // 门禁人脸下发
  55. rpc GateUserPicSync(pb_v1.GateUserPicSyncRequest) returns (pb_v1.GateUserPicSyncReply){}
  56. rpc GateUserPicDel(pb_v1.GateUserPicDelRequest) returns (pb_v1.GateUserPicDelReply){}
  57. // 获取人脸录入信息
  58. rpc GateUserPicInfo(pb_v1.GateUserPicInfoRequest) returns (pb_v1.GateUserPicInfoReply){}
  59. // 门禁进出记录列表
  60. rpc GateRecordList(pb_v1.GateRecordListRequest) returns (pb_v1.GateRecordListReply){}
  61. // 门禁进出记录添加
  62. rpc GateRecordAdd(pb_v1.GateRecordAddRequest) returns (pb_v1.GateRecordAddReply){}
  63. rpc GateVisitorAdd(pb_v1.GateVisitorAddRequest) returns (pb_v1.GateVisitorAddReply){}
  64. rpc GateVisitorDel(pb_v1.GateVisitorDelRequest) returns (pb_v1.GateVisitorDelReply){}
  65. rpc GateVisitorCheck(pb_v1.GateVisitorCheckRequest) returns (pb_v1.GateVisitorCheckReply){}
  66. rpc GateVisitorList(pb_v1.GateVisitorListRequest) returns (pb_v1.GateVisitorListReply){}
  67. // 获取绑定了某单元的门禁列表
  68. rpc GateUnitDevice(pb_v1.GateUnitDeviceRequest) returns (pb_v1.GateUnitDeviceReply){}
  69. // 门禁设备绑定范围
  70. rpc GateUnitAdd(pb_v1.GateUnitAddRequest) returns (pb_v1.GateUnitAddReply){}
  71. // 门禁设备单元列表
  72. rpc GateUnitList(pb_v1.GateUnitListRequest) returns (pb_v1.GateUnitListReply){}
  73. // 门禁协议
  74. rpc GateProtocols(pb_v1.GateProtocolsRequest) returns (pb_v1.GateProtocolsReply){}
  75. // 住户申请房屋后,检查是否有设备需要同步人脸
  76. rpc HouseholdGateSyncCheck(pb_v1.HouseholdGateSyncCheckRequest) returns (pb_v1.HouseholdGateSyncCheckReply){}
  77. }