1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- syntax = "proto3";
- package backend.operation;
- option go_package = ".;operationPb";
- import "backend/operation/pagination.proto";
- import "backend/operation/enum.proto";
- message SearchFormulaEstimateRequest {
- string start_time = 1; // 开始时间
- string end_time = 2; // 结束时间
- int32 search_type = 3; // 查询方式 1 安照配方 2 按照栏舍
- string name = 4; // 名称
- int32 pasture_id = 5; // 牧场id
- int32 template_id = 6; // 配方模板id
- int32 barn_id = 7; // 栏舍id
- PaginationModel pagination = 8; // 分页
- }
- // 首页 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;
- }
|