syntax = "proto3"; package backend.operation; option go_package = ".;operationPb"; import "backend/operation/pagination.proto"; import "backend/operation/enum.proto"; // SearchFormulaEstimateRequest 配方评估 message SearchFormulaEstimateRequest { string start_time = 1; // 开始时间 string end_time = 2; // 结束时间 int32 search_type = 3; // 查询方式 1 安照配方 2 按照栏舍 string api_name = 4; // 牧场端接口标识名称 int32 pasture_id = 5; // 牧场id int32 template_id = 6; // 配方模板id int32 barn_id = 7; // 栏舍id PaginationModel pagination = 8; // 分页 } // SearchInventoryStatisticsRequest 库存管理-库存统计 message SearchInventoryStatisticsRequest { string start_time = 1; // 开始时间 string end_time = 2; // 结束时间 string api_name = 3; // 牧场端接口标识名称 string feed_name = 4; // 饲料名称 int32 pasture_id = 5; // 牧场id PaginationModel pagination = 6; // 分页 } // SearchUserMaterialsStatisticsRequest 库存管理-用料分析 message SearchUserMaterialsStatisticsRequest { string start_time = 1; // 开始时间 string end_time = 2; // 结束时间 string api_name = 3; // 牧场端接口标识名称 int32 pasture_id = 4; // 牧场id int32 error_check = 5; // 误差是否选中 0 未选中 1 选中 int32 type_check = 6; // 返回实际或理论 1 理论 2 实际 string feed_name = 7; // 名称 PaginationModel pagination = 8; // 分页 } // SearchFeedStatisticsRequest 饲喂效率-效率统计 message SearchFeedStatisticsRequest { string start_time = 1; // 开始时间 string api_name = 2; // 牧场端接口标识名称 int32 pasture_id = 3; // 牧场id string formula_template = 4; // 配方模板名称 string barn_name = 5; // 栏舍名称 string cattle_category_name = 6; // 畜牧类别名称 int32 class_number = 7; // 班次 PaginationModel pagination = 8; // 分页 } // FeedChartStatisticsRequest 饲喂效率chart图表 message FeedChartStatisticsRequest { string start_time = 1; // 开始时间 string end_time = 2; // 结束时间 int32 pasture_id = 3; // 牧场id int32 status = 4; string api_type = 5; // mr 泌乳牛干物质采食量 sl 牛栏剩料率 hl 混料时间统计 zh 转化率 cbft 成本分析 } // 首页 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; }