statistic.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. syntax = "proto3";
  2. package backend.operation;
  3. option go_package = ".;operationPb";
  4. import "backend/operation/pagination.proto";
  5. // 添加配方评估 具体字段含义参照formula_estimate表对应的字段
  6. message AddFormulaEstimateRequest {
  7. int32 id = 1;
  8. int32 pasture_id = 2;
  9. string pasture_name = 3;
  10. int32 barn_id = 4;
  11. int32 feed_formula_id = 5;
  12. string feed_formula_name = 6;
  13. int32 cow_number = 7;
  14. int32 dry_formula_number = 8;
  15. int32 dry_tmr_feed = 9;
  16. int32 dry_food_intake = 10;
  17. int32 mj_formula_number = 11;
  18. int32 mj_tmr_feed = 12;
  19. int32 mj_food_intake = 13;
  20. int32 nnd_formula_number = 14;
  21. int32 nnd_tmr_feed = 15;
  22. int32 nnd_food_intake = 16;
  23. int32 cpg_formula_number = 17;
  24. int32 cpg_tmr_feed = 18;
  25. int32 cpg_food_intake = 19;
  26. int32 pg_formula_number = 20;
  27. int32 pg_tmr_feed = 21;
  28. int32 pg_food_intake = 22;
  29. int32 dm_formula_number = 23;
  30. int32 dm_tmr_feed = 24;
  31. int32 dm_food_intake = 25;
  32. int32 cpdm_formula_number = 26;
  33. int32 cpdm_tmr_feed = 27;
  34. int32 cpdm_food_intake = 28;
  35. int32 fat_formula_number = 29;
  36. int32 fat_tmr_feed = 30;
  37. int32 fat_food_intake = 31;
  38. int32 starch_formula_number = 32;
  39. int32 starch_tmr_feed = 33;
  40. int32 starch_food_intake = 34;
  41. int32 ndf_formula_number = 35;
  42. int32 ndf_tmr_feed = 36;
  43. int32 ndf_food_intake = 37;
  44. int32 cp_ndf_formula_number = 38;
  45. int32 cp_ndf_tmr_feed = 39;
  46. int32 cp_ndf_food_intake = 40;
  47. int32 adf_formula_number = 41;
  48. int32 adf_tmr_feed = 42;
  49. int32 adf_food_intake = 43;
  50. int32 calcium_formula_number = 44;
  51. int32 calcium_tmr_feed = 45;
  52. int32 calcium_food_intake = 46;
  53. int32 pdm_formula_number = 47;
  54. int32 pdm_tmr_feed = 48;
  55. int32 pdm_food_intake = 49;
  56. int32 cf_ratio_formula_number = 50;
  57. int32 cf_ratio_tmr_feed = 51;
  58. int32 cf_ratio_food_intake = 52;
  59. int32 created_at = 53;
  60. string created_at_format = 54;
  61. }
  62. message SearchFormulaEstimateRequest {
  63. string start_time = 1; // 开始时间
  64. string end_time = 2; // 结束时间
  65. int32 search_type = 3; // 查询方式 1 安照配方 2 按照栏舍
  66. string name = 4; // 名称
  67. PaginationModel pagination = 5; // 分页
  68. }
  69. message SearchFormulaEstimateResponse {
  70. int32 code = 1;
  71. string msg = 2;
  72. SearchFormulaEstimate data = 3;
  73. }
  74. message SearchFormulaEstimate {
  75. int32 page = 1;
  76. int32 total = 2;
  77. int32 page_size = 3;
  78. repeated AddFormulaEstimateRequest list = 4;
  79. }