| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | syntax = "proto3";package backend.operation;option go_package = ".;operationPb";import "backend/operation/pagination.proto";import "backend/operation/enum.proto";message AddFeedFormulaRequest {  int32 id = 1;  string name = 2;                   // 名称  string  encode_number = 3;         // 编码  string colour = 4;                 // 颜色  CattleCategoryParent.Kind cattle_category_id = 5;      // 畜牧类别id  string cattle_category_name = 6;   // 畜牧类型名称  int32 formula_type_id = 7;         // 配方类型id  string formula_type_name = 8;      // 配方类型名称  DataSource.Kind data_source_id = 9;   // 数据来源  string data_source_name = 10;   // 数据来源  string remarks = 11;               // 备注  int32 version = 12;                // 版本号  IsShow.Kind is_show = 13;          // 是否启用  IsShow.Kind is_modify = 14;        // 是否可修改  int32 created_at = 15;             // 创建时间  string created_at_format = 16;     // 创建时间格式化  string pasture_name = 17;          // 牧场名称}message SearchFeedFormulaRequest {  int32 cattle_category_id = 1;    // 分类id  int32 formula_type_id = 2;       // 配方类型id  int32 data_source = 3;           // 饲料来源  IsShow.Kind is_show = 4;         // 是否启用  string name = 5;                 // 配方名称  string remarks = 6;              // 备注  PaginationModel pagination = 7;  // 分页}message SearchFeedFormulaListResponse {  int32 code = 1;  string msg = 2;  SearchFeedFormulaListData data = 3;}message SearchFeedFormulaListData {  int32 page = 1;  int32 page_size = 2;  int32 total = 3;  repeated AddFeedFormulaRequest list = 4;}// 是否启用message IsShowModifyFeedFormula {  int32 feed_formula_id = 1;  IsShow.Kind is_show = 2;  int32 edit_type = 3;      // 1 更新是否启用 2 更新 modify}// 配方编码message UniqueID {  int32 code = 1;  string msg = 2;  message UniqueData {    string encode_number = 1;  }  UniqueData data = 3;}// DistributeFeedFormulaRequest 饲料配方下发message DistributeFeedFormulaRequest {  repeated int32 pasture_ids = 1;          // 牧场ids集合  repeated int32 feed_formula_ids = 2;     // 配方ids集合}// 配方使用概况message FeedFormulaUsageRequest {    int32 feed_formula_id = 1;        // 饲料配方id    string start_time = 2;            // 开始时间    string end_time = 3;              // 结束时间    int32 pasture_id = 4;            // 牧场id}// 配方使用概况message FeedFormulaUsageResponse {  int32 code = 1;  string msg = 2;  repeated FeedFormulaUsageList data = 3;}// 配方使用概况message FeedFormulaUsageList {  int32 pasture_id = 1;                        // 牧场id  string pasture_name = 2;                     // 牧场名称  string mixed_fodder_accurate_ratio = 3;      // 混料准确率  string mixed_fodder_correct_ratio = 4;       // 混料正确率  string sprinkle_fodder_accurate_ratio = 5;   // 撒料准确率  string sprinkle_fodder_correct_ratio = 6;    // 撒料正确率  string add_feed_time = 7;                    // 加料时间  string sprinkle_time = 8;                    // 撒料时间  string stir_time = 9;                        // 搅拌延迟时间  string last_edit_time = 10;                  // 最近一次修改配方时间}message PastureFeedFormulaUsageResponse {  int32 code = 1;  string msg = 2;  PastureData data = 3;}message PastureData {  string mixed_fodder_accurate_ratio = 3;      // 混料准确率  string mixed_fodder_correct_ratio = 4;       // 混料正确率  string sprinkle_fodder_accurate_ratio = 5;   // 撒料准确率  string sprinkle_fodder_correct_ratio = 6;    // 撒料正确率  string add_feed_time = 7;                    // 加料时间  string sprinkle_time = 8;                    // 撒料时间  string stir_time = 9;                        // 搅拌延迟时间  string last_edit_time = 10;                  // 最近一次修改配方时间}
 |