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