device_service.proto 972 B

123456789101112131415161718192021222324252627
  1. syntax = "proto3";
  2. import "v1/device.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "property-device-gateway/pb";
  7. // The system service definition.
  8. service Device {
  9. // 门禁在线
  10. rpc GateOnline(pb_v1.GateOnlineRequest) returns (pb_v1.GateOnlineReply){}
  11. // 门禁白名单匹配
  12. rpc GateWhiteMatch(pb_v1.GateWhiteMatchRequest) returns (pb_v1.GateWhiteMatchReply){}
  13. // 门禁进出记录添加
  14. rpc GateRecordAdd(pb_v1.GateRecordAddRequest) returns (pb_v1.GateRecordAddReply){}
  15. // 获取门禁远程命令
  16. rpc GateCommandUse(pb_v1.GateCommandUseRequest) returns (pb_v1.GateCommandUseReply){}
  17. // 门禁远程命令结果
  18. rpc GateCommandResult(pb_v1.GateCommandResultRequest) returns (pb_v1.GateCommandResultReply){}
  19. rpc GateVisitorCheck(pb_v1.GateVisitorCheckRequest) returns (pb_v1.GateVisitorCheckReply){}
  20. }