syntax = "proto3"; package aiot; import "aiot_common.proto"; // 请求的body体 message BusinessReq { string topic = 1; string authorization = 2; bytes req = 3; } // 响应的body体 message BusinessReply { int32 code = 1; string msg = 2; bool success = 3; bytes data = 4; } service AiotService { rpc GetBusiness(BusinessReq) returns (BusinessReply){} rpc SendAiotReq(Protocol) returns (Protocol){} }