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