pasture.proto 931 B

1234567891011121314151617181920212223242526272829303132
  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_phone = 5; // 牧场负责人手机号
  10. string address = 6; // 牧场地址
  11. IsShow.Kind is_show = 7; // 是否启用
  12. int64 created_at = 8; // 创建时间
  13. }
  14. message SearchPastureRequest {
  15. int32 page = 1; // 第几页,从1开始
  16. int32 page_size = 2; // 每页size,一般为20
  17. string name = 3; // 牧场名称
  18. string manager_user = 4; // 牧场负责人名称
  19. string manager_phone = 5; // 牧场负责人手机号
  20. int64 start_time = 6; // 开始时间
  21. int64 end_time = 7; // 结束时间
  22. }
  23. message SearchPastureResponse {
  24. int32 page = 1;
  25. int32 total = 2;
  26. repeated AddPastureRequest list = 3;
  27. }