syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-system-gateway/pb/v1"; message HouseRentAddManagerRequest { int64 garden_id = 1; int64 manager_uid = 2; int64 rent_id = 3; } message HouseRentAddManagerReply { int64 id = 1; } message HouseRentDelManagerRequest { int64 garden_id = 1; int64 id = 2; } message HouseRentDelManagerReply { } message HouseRentManagerListRequest { int64 garden_id = 1; int64 rent_id = 4; } message HouseRentManagerItem { int64 id = 1; int64 manager_uid = 2; // 姓名 string name = 3; string phone = 4; // 账号 string user_name = 5; } message HouseRentManagerListReply { repeated HouseRentManagerItem list = 1; }