123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- syntax = "proto3";
- package backend.operation;
- option go_package = ".;operationPb";
- import "backend/operation/pagination.proto";
- import "backend/operation/enum.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;
- }
- // 首页 dashboard 准确性分析
- message SearchAnalysisAccuracyRequest {
- CattleCategoryParent.Kind cattle_parent_category_id = 1; // 牧畜分类id 泌乳牛
- int32 feed_formula_id = 2; // 配方id
- string start_date = 3; // 开始时间
- string end_date = 4; // 结束时间
- repeated int32 pasture_ids = 5; //牧场ids
- }
- message SearchAnalysisAccuracyResponse {
- int32 code = 1;
- string msg = 2;
- AnalysisAccuracy data = 3;
- }
- message AnalysisAccuracy {
- Chart chart = 1;
- Table table = 2;
- }
- message Chart {
- CommonValueRatio mixed_fodder_accurate_ratio = 4; // 混料准确率
- CommonValueRatio mixed_fodder_correct_ratio = 5; // 混料正确率
- CommonValueRatio sprinkle_fodder_accurate_ratio = 6; // 撒料准确率
- CommonValueRatio sprinkle_fodder_correct_ratio = 7; // 撒料正确率
- }
- message Table {
- message TableList {
- int32 id = 1;
- string name = 2;
- }
- repeated TableList table_list = 1;
- }
- message CommonValueRatio {
- string max_value = 1; // 最高值
- string middle_value = 2; // 中位值
- string min_value = 3; // 最低值
- repeated ValueRatio data_list = 4; // 数据集合
- repeated string pasture_name = 5; // 牧场名称集合
- repeated string date_day = 6; // 日期集合
- }
- message ValueRatio {
- repeated string value_ratio = 1;
- }
|