| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 | syntax = "proto3";package backend.operation;option go_package = ".;operationPb";import "backend/operation/enum.proto";import "backend/operation/pagination.proto";message AddPastureRequest {  int32 id = 1;  string name = 2; // 牧场名称  string account = 3;   // 登录账号名称  string manager_user = 4; // 牧场负责人名称  string manager_phone = 5;   // 牧场负责人手机号  string address = 6;   // 牧场地址  IsShow.Kind is_show = 7;    // 是否启用  int32 created_at = 8;    // 创建时间  string created_at_format = 9;    // 创建时间格式化}message SearchPastureRequest {  string name = 1;       // 牧场名称  string manager_user = 2; // 牧场负责人名称  string manager_phone = 3;   // 牧场负责人手机号  uint32 start_time = 4;       // 开始时间  uint32 end_time = 5;    // 结束时间  PaginationModel pagination = 6; // 分页}message SearchPastureResponse {  int32 code = 1;  string msg = 2;  SearchPastureData data = 3;}message SearchPastureData {  int32 page = 1;  int32 total = 2;  int32 page_size = 3;  repeated AddPastureRequest list = 4;}message UserPasture {  int32 id = 1;  string name = 2;}message IsShowGroupPasture {  int32 pasture_id = 1;    // 牧场id  IsShow.Kind is_show = 2;     // 是否开启}// 添加牧畜分类message AddCattleCategoryRequest {  uint32 id = 1;  CattleCategoryParent.Kind parent_id = 2;  // 父类id  string parent_name = 3;        // 父类名称  string name = 4;               // 牧畜分类名称  string number = 5;            // 畜牧类别编号  IsShow.Kind is_show = 6;      // 是否启用  uint32 created_at = 7;         // 创建时间  string created_at_format = 8;   // 创建时间格式}// 是否启用message IsShowCattleCategory {  int32 cattle_category_id = 1;  IsShow.Kind is_show = 2;}// 畜牧分类查询列表message SearchCattleCategoryRequest {  string parent_name = 1;  IsShow.Kind is_show = 2;  string name = 3;  PaginationModel pagination = 4; // 分页}message SearchCattleCategoryResponse {  int32 code = 1;  string msg = 2;  SearchCattleCategoryData data = 3;}message SearchCattleCategoryData {  int32 page = 1;  int32 total = 2;  int32 page_size = 3;  repeated AddCattleCategoryRequest list = 4;}// 添加饲料分类message AddForageCategoryRequest {  uint32 id = 1;  ForageCategoryParent.Kind parent_id = 2;  // 父类id  string parent_name = 3;        // 父类名称  string name = 4;               // 牧畜分类名称  string number = 5;            // 畜牧类别编号  IsShow.Kind is_show = 6;      // 是否启用  uint32 created_at = 7;         // 创建时间  string created_at_format = 8;   // 创建时间格式}// 是否启用message IsShowForageCategory {  int32 forage_category_id = 1;  IsShow.Kind is_show = 2;}// 饲料分类查询列表message SearchForageCategoryRequest {  string parent_name = 1;  IsShow.Kind is_show = 2;  string name = 3;  PaginationModel pagination = 4; // 分页}message SearchForageCategoryResponse {  int32 code = 1;  string msg = 2;  SearchForageCategoryData data = 3;}message SearchForageCategoryData {  int32 page = 1;  int32 total = 2;  int32 page_size = 3;  repeated AddForageCategoryRequest list = 4;}// 饲料列表message AddForageRequest {  int32 id = 1;  string name = 2;                // 饲料名称  int32 category_id = 3;          // 饲料分类id  string category_name = 4;       // 饲料分类名称  int32 material_type = 5;        // 物料类型  string unique_encode = 7;       // 唯一编码  ForageSource.Kind forage_source_id = 8;       // 饲料来源id  string forage_source_name = 9;                // 饲料来源名称  ForagePlanType.Kind plan_type_id = 10;       // 计划类型id  string plan_type_name = 11;                  // 计划类型名称  string  small_material_scale = 12;           // 小料称  int32 allow_error = 13;                     // 允许误差 (单位kg)  int32 package_weight = 14;                  // 包装重量 (单位kg)  int32 price = 15;                          // 单价(单位分)  int32 jump_weight = 16;                    // 跳转重量域(单位kg)  JumpDelaType.Kind jump_delay = 17;         // 跳转延迟  IsShow.Kind confirm_start = 18;            // 确认开始  int32  relay_locations = 19;               // 继电器位置  IsShow.Kind jmp = 20;                     // 无上域  string backup1 = 21;                      // 备用字段1  string backup2 = 22;                      // 备用字段2  string backup3 = 23;                      // 备用字段3  int32 created_at = 24;                    // 创建时间  string created_at_format = 25;            // 创建时间格式化  IsShow.Kind is_show = 26;                  // 是否启用}message SearchForageListRequest {  string name = 1;   // 饲料名称  string category_id = 2;   // 饲料分类id  uint32 forage_source_id = 3;   // 饲料来源  IsShow.Kind is_show = 4;    // 是否启用  uint32 allow_error = 5;      // 允许误差  uint32 jump_weight = 6;      // 跳转重量域  JumpDelaType.Kind  jump_delay = 7;   // 跳转延迟  PaginationModel pagination = 8; // 分页}message SearchForageListResponse { int32 code = 1; string msg = 2; SearchForageList data = 3;}message SearchForageList {  int32 page = 1;  int32 page_size = 2;  int32 total = 3;  repeated AddForageRequest list = 4;}// 是否启用message IsShowForage {  int32 forage_id = 1;  IsShow.Kind is_show = 2;}message ForageEnumListResponse {  int32 code = 1;  string msg = 2;  ForageEnumList data = 3;}message ForageEnumList {  repeated ForageSourceEnum forage_source = 1;  repeated ForagePlanTypeEnum forage_plan_type = 2;  repeated JumpDelaTypeEnum jump_dela_type = 3;  repeated CattleParentCategoryEnum cattle_parent_category = 4;  repeated ForageParentCategoryEnum forage_parent_category = 5;  repeated IsShowEnum is_show = 6;  repeated FormulaTypeEnum formula_type = 7;  repeated FormulaOptionEnum formula_list = 8;  repeated IsShowEnum confirm_start = 9;}message ForageSourceEnum {  ForageSource.Kind value = 1;  string label = 2;}message ForagePlanTypeEnum {  ForagePlanType.Kind value = 1;  string label = 2;}message JumpDelaTypeEnum {  JumpDelaType.Kind value = 1;  string label = 2;}message CattleParentCategoryEnum {  CattleCategoryParent.Kind value = 1;  string label = 2;}message ForageParentCategoryEnum {  ForageCategoryParent.Kind value = 1;  string label = 2;}message IsShowEnum {  IsShow.Kind value = 1;  string label = 2;}message FormulaTypeEnum {  FormulaType.Kind value = 1;  string label = 2;}message FormulaOptionEnum {  int32 value = 1;  string label = 2;}
 |