pasture.proto 987 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package backend.operation;
  3. option go_package = ".;operationPb";
  4. import "backend/operation/enum.proto";
  5. message AddPastureRequest {
  6. int64 id = 1;
  7. string name = 2; // 牧场名称
  8. string manager_user = 3; // 牧场负责人名称
  9. string manager_password = 4; // 牧场负责人账号
  10. string manager_phone = 5; // 牧场负责人手机号
  11. string address = 6; // 牧场地址
  12. IsShow.Kind is_show = 7; // 是否启用
  13. int64 Created_at = 8; // 创建时间
  14. }
  15. message SearchPastureRequest {
  16. int32 page = 1; // 第几页,从1开始
  17. int32 page_size = 2; // 每页size,一般为20
  18. string name = 3; // 牧场名称
  19. string manager_user = 4; // 牧场负责人名称
  20. string manager_phone = 5; // 牧场负责人手机号
  21. int64 start_time = 6; // 开始时间
  22. int64 end_time = 7; // 结束时间
  23. }
  24. message SearchPastureResponse {
  25. int32 page = 1;
  26. int32 total = 2;
  27. repeated AddPastureRequest data = 3;
  28. }