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;
- string cattle_category_name = 6;
- int32 formula_type_id = 7;
- 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;
- int32 formula_type_id = 2;
- 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;
- }
- message UniqueID {
- int32 code = 1;
- string msg = 2;
- message UniqueData {
- string encode_number = 1;
- }
- UniqueData data = 3;
- }
- message DistributeFeedFormulaRequest {
- repeated int32 pasture_ids = 1;
- repeated int32 feed_formula_ids = 2;
- }
- message FeedFormulaUsageRequest {
- int32 feed_formula_id = 1;
- string start_time = 2;
- string end_time = 3;
- int32 pasture_id = 4;
- }
- message FeedFormulaUsageResponse {
- int32 code = 1;
- string msg = 2;
- repeated FeedFormulaUsageList data = 3;
- }
- message FeedFormulaUsageList {
- int32 pasture_id = 1;
- 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;
- }
|