syntax = "proto3"; import "v1/mqtt.proto"; // package声明符,用来防止不同的消息类型有命名冲突 package pb.service; // 用于生成指定语言go的包名称 option go_package = "property-device/pb"; // The system service definition. service Mqtt { rpc FaceWhiteAdd(pb_v1.FaceWhiteAddRequest) returns (pb_v1.FaceWhiteAddReply){} rpc FaceWhiteDel(pb_v1.FaceWhiteDelRequest) returns (pb_v1.FaceWhiteDelReply){} rpc FaceReboot(pb_v1.FaceRebootRequest) returns (pb_v1.FaceRebootReply){} rpc FaceOpen(pb_v1.FaceOpenRequest) returns (pb_v1.FaceOpenReply){} rpc NewMqttDevice(pb_v1.NewMqttDeviceRequest) returns (pb_v1.NewMqttDeviceReply){} }