123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- 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;
- }
|