syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-device/pb/v1"; message GardenHouseholdUserListRequest { int64 garden_id = 1; int64 page = 2; int64 page_size = 3; string name = 4; string phone = 5; string id_number = 6; int32 user_type = 7; repeated int64 uids = 8; } message GardenHouseholdUserItem { int64 id = 1; // 1业主 2家人 3租客 int32 user_type = 2; string phone = 3; string name = 4; // 1 身份证 2 护照 int32 id_type = 5; // 证件号 string id_number = 6; string garden_name = 7; string house_name = 8; } message GardenHouseholdUserListReply { int64 total = 1; int64 page = 2; repeated GardenHouseholdUserItem list = 3; } message GardenHouseholdListRequest { int64 garden_id = 1; int64 uid = 2; int64 page = 3; int64 page_size = 4; int32 user_type = 5; string name = 6; } message GardenHouseholdItem { int64 id = 1; // 1业主 2家人 3租客 int32 user_type = 2; string phone = 3; string name = 4; repeated string appendix = 5; // 1 身份证 2 护照 int32 id_type = 6; // 证件号 string id_number = 7; // 房号 string house_name = 8; int32 approve_status = 9; string garden_name = 10; int64 uid = 11; int64 house_id = 12; int64 unit_id = 13; } message GardenHouseholdListReply { int64 page = 1; int64 total = 2; repeated GardenHouseholdItem list = 3; } message GardenHouseholdUnitIdsRequest { int64 garden_id = 1; repeated int64 uids = 2; } message GardenHouseholdUnitId { int64 uid = 1; string house_names = 2; repeated int64 unit_ids = 3; int32 user_type = 4; } message GardenHouseholdUnitIdsReply { repeated GardenHouseholdUnitId list = 1; } message GardenHouseholdUidsFromUnitIdRequest { int64 garden_id = 1; repeated int64 unit_ids = 2; } message GardenHouseholdUidsFromUnitIdReply { repeated int64 uids = 3; } message SystemMsgAddRequest { int64 garden_id = 1; string content = 2; string code = 3; int64 uid = 4; } message SystemMsgAddReply { }