syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-applete-gateway/pb/v1"; message SuggestionOrderAddRequest { int64 garden_id = 1; // 投诉类型 1 投诉 2 建议 int32 suggestion_type = 2; // 投诉人 string apply_people = 3; // 投诉人电话 string apply_people_phone = 4; // 上级处理人 int64 last_uid = 5; // 投诉内容 string apply_content = 6; // 投诉图片 repeated string apply_pic = 7; bool by_company = 8; int64 household_uid = 9; } message SuggestionOrderAddReply { int64 id = 1; } message SuggestionOrderUpdateRequest { int64 garden_id = 1; // 投诉类型 1 投诉 2 建议 int32 suggestion_type = 2; // 投诉人 string apply_people = 3; // 投诉人电话 string apply_people_phone = 4; // 投诉内容 string apply_content = 5; // 投诉图片 repeated string apply_pic = 6; int64 id = 7; int64 household_uid = 8; } message SuggestionOrderUpdateReply { SuggestionOrderUpdateRequest origin = 1; } message SuggestionOrderDelRequest { int64 garden_id = 1; int64 id = 2; int64 household_uid = 11; } message SuggestionOrderDelReply { SuggestionOrderUpdateRequest origin = 1; } message SuggestionOrderSendRequest { int64 garden_id = 1; int64 id = 2; int64 current_uid = 3; string feedback = 4; int64 last_uid = 5; bool by_company = 6; } message SuggestionOrderSendReply { } message SuggestionOrderFinishRequest { int64 garden_id = 1; int64 id = 2; string feedback = 4; repeated string handle_pic = 5; int64 last_uid = 6; bool by_company = 7; } message SuggestionOrderFinishReply { } message SuggestionOrderBackRequest { int64 garden_id = 1; int64 id = 2; string feedback = 3; int64 last_uid = 5; bool by_company = 6; } message SuggestionOrderBackReply { } message SuggestionOrderReturnVisitRequest { int64 garden_id = 1; int64 id = 2; // 1 满意 2 不满意 int32 return_visit_level = 3; // 回访内容 string return_visit_content = 4; } message SuggestionOrderReturnVisitReply { } message SuggestionOrderPipelineData { // 处理人 string user = 1; // 处理意见 string feedback = 2; // 处理时间 string handle_time = 3; string status = 4; string phone = 5; } message SuggestionOrderItem { int64 id = 1; // 投诉类型 1 投诉 2 建议 int32 suggestion_type = 2; // 投诉人 string apply_people = 3; // 投诉人电话 string apply_people_phone = 4; // 当前状态处理人 string current_user = 5; // 投诉内容 string apply_content = 6; // 投诉图片 repeated string apply_pic = 7; // 回访内容 string return_visit_content = 8; // 回访满意度 int32 return_visit_level = 9; // 投诉时间 string created_at = 10; int32 status = 11; // 上级处理人 string last_user = 12; } message SuggestionOrderInfoRequest { int64 garden_id = 1; int64 id = 2; } message SuggestionOrderInfoReply { // 基本信息 SuggestionOrderItem base_info = 1; // 工单流水线 repeated SuggestionOrderPipelineData list = 2; } message SuggestionOrderListRequest { 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; int32 suggestion_type = 8; } message SuggestionOrderListReply { int64 page = 1; int64 total = 2; repeated SuggestionOrderItem list = 3; }