system.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-device/pb/v1";
  6. message GardenInfosRequest {
  7. repeated int64 ids = 1;
  8. }
  9. message GardenItem {
  10. // 物业公司id
  11. int64 cid = 1;
  12. // 省
  13. string province = 2;
  14. string province_code = 3;
  15. // 市
  16. string city = 4;
  17. string city_code = 5;
  18. // 区
  19. string area = 6;
  20. string area_code = 7;
  21. // 街道
  22. string street = 8;
  23. string street_code = 9;
  24. // 社区
  25. string committee = 10;
  26. string committee_code = 11;
  27. // 小区名字
  28. string garden_name = 12;
  29. // 小区地址
  30. string garden_addr = 13;
  31. // 物业联系人
  32. string property_person = 14;
  33. // 物业联系人手机号
  34. string property_phone = 15;
  35. int64 id = 16;
  36. string garden_pic = 17;
  37. string garden_desc = 18;
  38. bool in_use = 19;
  39. // 经度
  40. double lnt = 20;
  41. // 纬度
  42. double lat = 21;
  43. repeated string appendix = 22;
  44. int32 status = 23;
  45. string feedback = 24;
  46. }
  47. message GardenInfosReply {
  48. repeated GardenItem list = 1;
  49. }