123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- 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; // 畜牧类型名称
- FormulaType.Kind 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集合
- }
- // EditRecodeFeedFormulaRequest 饲料配方修改记录
- message EditRecodeFeedFormulaRequest {
- int32 pasture_id = 1; // 牧场id
- int32 feed_formula_id = 2; // 饲料配方id
- int32 start_time = 3; // 开始时间
- int32 end_time = 4; // 结束时间
- }
- // EditRecodeFeedFormulaResponse 饲料配方修改记录
- message EditRecodeFeedFormulaResponse {
- int32 code = 1;
- string msg = 2;
- repeated EditRecodeFeedFormulaData data = 3;
- }
- message EditRecodeFeedFormulaData {
- int32 pasture_id = 1;
- string pasture_name = 2;
- string modify_time = 3;
- string modify_detail = 4;
- }
- // GroupAddFeedFormulaDetail 配方添加饲料
- message GroupAddFeedFormulaDetail {
- int32 feed_formula_id = 1; // 配方id
- repeated AddFeedFormulaDetail list = 2; // 饲料详情
- }
- message AddFeedFormulaDetail {
- int32 feed_formula_id = 1; // 配方id
- int32 forage_id = 2; // 饲料id
- string forage_name = 3; // 饲料名称
- string forage_group_name = 4; // 饲料分组名称
- float weight = 5; // 重量
- int32 stir_delay = 6; // 搅拌延迟
- int32 allow_error = 7; // 允许误差
- int32 created_at = 8; // 创建时间
- string created_at_format = 9; // 创建时间格式化
- int32 id = 10;
- int32 sort = 11; // 排序
- int32 is_lock_cow_count_ratio = 12; // 是否锁定牛头数比例
- PaginationModel pagination = 13; // 分页
- int32 pre_fit = 14; // 预混料id
- IsShow.Kind is_modify = 15;
- }
- // FeedFormulaDetailRequest 饲料配方详情
- message FeedFormulaDetailRequest {
- int32 feed_formula_id = 1; // 配方id
- }
- // FeedFormulaDetailRequest 饲料配方详情
- message FeedFormulaDetailResponse {
- int32 code = 1;
- string msg = 2;
- repeated AddFeedFormulaDetail data = 3;
- }
- // 配方使用概况
- 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; // 最近一次修改配方时间
- }
- message MixedFeedFormulaRequest {
- string name = 1; // 配方名称
- string colour = 2; // 颜色
- int32 cattle_category_id = 3; // 分类id
- string cattle_category_name = 4; // 分类名称
- FormulaType.Kind formula_type_id = 5; // 配方类型id
- string formula_type_name = 6; // 配方类型名称
- int32 data_source_id = 7; // 来源id
- string remarks = 8; // 备注
- int32 feed_formula_id = 9; // 配方id
- repeated AddFeedFormulaDetail feed_list = 10;
- }
|