syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-applete-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; } message HouseRentAppointmentAddRequest { int64 garden_id = 1; int64 uid = 2; int64 rent_id = 3; string name = 4; string phone = 5; int32 gender = 6; int64 appointment_time = 7; } message HouseRentAppointmentAddReply { int64 id = 1; } message HouseRentAppointmentDelRequest { int64 garden_id = 1; int64 id = 2; } message HouseRentAppointmentDelReply { } message HouseRentAppointmentListRequest { int64 garden_id = 1; int64 rent_id = 2; int64 uid = 3; int64 page = 4; int64 page_size = 5; string house_name = 6; } message HouseRentAppointmentItem { int64 id = 1; int64 uid = 2; int64 rent_id = 3; string name = 4; string phone = 5; int32 gender = 6; int64 appointment_time = 7; string house_name = 8; } message HouseRentAppointmentListReply { int64 page = 1; int64 total = 2; repeated HouseRentAppointmentItem list = 3; }