house_rent.proto 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-gateway/pb/v1";
  6. message HouseRentAddManagerRequest {
  7. int64 garden_id = 1;
  8. int64 manager_uid = 2;
  9. int64 rent_id = 3;
  10. }
  11. message HouseRentAddManagerReply {
  12. int64 id = 1;
  13. }
  14. message HouseRentDelManagerRequest {
  15. int64 garden_id = 1;
  16. int64 id = 2;
  17. }
  18. message HouseRentDelManagerReply {
  19. }
  20. message HouseRentManagerListRequest {
  21. int64 garden_id = 1;
  22. int64 rent_id = 4;
  23. }
  24. message HouseRentManagerItem {
  25. int64 id = 1;
  26. int64 manager_uid = 2;
  27. // 姓名
  28. string name = 3;
  29. string phone = 4;
  30. // 账号
  31. string user_name = 5;
  32. }
  33. message HouseRentManagerListReply {
  34. repeated HouseRentManagerItem list = 1;
  35. }