syntax = "proto3"; import "v1/device.proto"; // package声明符,用来防止不同的消息类型有命名冲突 package pb.service; // 用于生成指定语言go的包名称 option go_package = "property-household-gateway/pb"; // The system service definition. service Device { // 门禁列表 rpc GateList(pb_v1.GateListRequest) returns (pb_v1.GateListReply){} rpc GateVisitorDel(pb_v1.GateVisitorDelRequest) returns (pb_v1.GateVisitorDelReply){} rpc GateVisitorList(pb_v1.GateVisitorListRequest) returns (pb_v1.GateVisitorListReply){} // 门禁人脸申请 rpc GateUserPicAdd(pb_v1.GateUserPicAddRequest) returns (pb_v1.GateUserPicAddReply){} // 获取人脸录入信息 rpc GateUserPicInfo(pb_v1.GateUserPicInfoRequest) returns (pb_v1.GateUserPicInfoReply){} // 获取绑定了某单元的门禁列表 rpc GateUnitDevice(pb_v1.GateUnitDeviceRequest) returns (pb_v1.GateUnitDeviceReply){} }