syntax = "proto3"; import "v1/garden.proto"; // package声明符,用来防止不同的消息类型有命名冲突 package pb.service; // 用于生成指定语言go的包名称 option go_package = "property-device/pb"; // The system service definition. service Garden { // 业主信息列表 rpc GardenHouseholdUserList(pb_v1.GardenHouseholdUserListRequest) returns (pb_v1.GardenHouseholdUserListReply){} rpc GardenHouseholdList(pb_v1.GardenHouseholdListRequest) returns (pb_v1.GardenHouseholdListReply){} // 住户的单元id列表 rpc GardenHouseholdUnitIds(pb_v1.GardenHouseholdUnitIdsRequest) returns (pb_v1.GardenHouseholdUnitIdsReply){} // 根据单元id获取住户uid列表 rpc GardenHouseholdUidsFromUnitId(pb_v1.GardenHouseholdUidsFromUnitIdRequest) returns (pb_v1.GardenHouseholdUidsFromUnitIdReply){} rpc SystemMsgAdd(pb_v1.SystemMsgAddRequest)returns (pb_v1.SystemMsgAddReply){} }