syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-applete-gateway/pb/v1"; message RepairOrderAddRequest { int64 garden_id = 1; // 分类id int64 class_id = 2; // 报修人 string apply_people = 3; // 报修人电话 string apply_people_phone = 4; // 预约时间 int64 appointment = 5; // 房屋id int64 house_id = 6; // 上级处理人 int64 last_uid = 7; // 报修内容 string apply_content = 8; // 报修图片 repeated string apply_pic = 9; bool by_company = 10; int64 household_uid = 11; } message RepairOrderAddReply { int64 id = 1; } message RepairOrderUpdateRequest { int64 garden_id = 1; // 分类id int64 class_id = 2; // 报修人 string apply_people = 3; // 报修人电话 string apply_people_phone = 4; // 预约时间 int64 appointment = 5; // 房屋id int64 house_id = 6; // 报修内容 string apply_content = 7; // 报修图片 repeated string apply_pic = 8; int64 id = 9; int64 household_uid = 10; } message RepairOrderUpdateReply { RepairOrderUpdateRequest origin = 1; } message RepairOrderDelRequest { int64 garden_id = 1; int64 id = 2; int64 household_uid = 11; } message RepairOrderDelReply { RepairOrderUpdateRequest origin = 1; } message RepairOrderSendRequest { int64 garden_id = 1; int64 id = 2; int64 current_uid = 3; string feedback = 4; int64 last_uid = 5; bool by_company = 6; } message RepairOrderSendReply { } message RepairOrderFinishRequest { int64 garden_id = 1; int64 id = 2; string feedback = 4; repeated string repair_pic = 5; int64 last_uid = 6; bool by_company = 7; } message RepairOrderFinishReply { } message RepairOrderBackRequest { int64 garden_id = 1; int64 id = 2; string feedback = 3; int64 last_uid = 5; bool by_company = 6; } message RepairOrderBackReply { } message RepairOrderReturnVisitRequest { int64 garden_id = 1; int64 id = 2; // 1 满意 2 不满意 int32 return_visit_level = 3; // 回访内容 string return_visit_content = 4; } message RepairOrderReturnVisitReply { } message RepairOrderPipelineData { // 处理人 string user = 1; // 处理意见 string feedback = 2; // 处理时间 string handle_time = 3; string status = 4; string phone = 5; } message RepairOrderItem { int64 id = 1; // 分类id int64 class_id = 2; // 报修人 string apply_people = 3; // 报修人电话 string apply_people_phone = 4; // 预约时间 string appointment = 5; // 房屋id int64 house_id = 6; // 当前状态处理人 string current_user = 7; // 报修内容 string apply_content = 8; // 报修图片 repeated string apply_pic = 9; // 回访内容 string return_visit_content = 10; // 回访满意度 int32 return_visit_level = 11; // 楼栋id int64 building_id = 12; // 单元id int64 unit_id = 13; // 房屋全称 string house_name = 14; // 报修时间 string created_at = 15; // 维修时间 string repair_time = 16; // 分类名称 string class_name = 17; int32 status = 18; // 上级处理人 string last_user = 19; int32 area = 20; } message RepairOrderInfoRequest { int64 garden_id = 1; int64 id = 2; } message RepairOrderInfoReply { // 基本信息 RepairOrderItem base_info = 1; // 工单流水线 repeated RepairOrderPipelineData list = 2; } message RepairOrderListRequest { int64 page = 1; int64 page_size = 2; int32 status = 3; string apply_people = 4; string apply_people_phone = 5; int64 current_uid = 6; int64 garden_id = 7; int64 class_id = 8; } message RepairOrderListReply { int64 page = 1; int64 total = 2; repeated RepairOrderItem list = 3; } message RepairClassAddRequest { int64 garden_id = 1; string name = 2; bool enable = 3; int32 area = 4; } message RepairClassAddReply { int64 id = 1; } message RepairClassUpdateRequest { int64 garden_id = 1; string name = 2; bool enable = 3; int64 id = 4; int32 area = 5; } message RepairClassUpdateReply { RepairClassUpdateRequest origin = 1; } message RepairClassDelRequest { int64 garden_id = 1; int64 id = 2; } message RepairClassDelReply { RepairClassUpdateRequest origin = 1; } message RepairClassListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int32 area = 4; } message RepairClassItem { int64 id = 1; string name = 2; bool enable = 3; int32 area = 4; } message RepairClassListReply { int64 page = 1; int64 total = 2; repeated RepairClassItem list = 3; }