feed_formula.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. syntax = "proto3";
  2. package backend.operation;
  3. option go_package = ".;operationPb";
  4. import "backend/operation/pagination.proto";
  5. import "backend/operation/enum.proto";
  6. message AddFeedFormulaRequest {
  7. int32 id = 1;
  8. string name = 2; // 名称
  9. string encode_number = 3; // 编码
  10. string colour = 4; // 颜色
  11. CattleCategoryParent.Kind cattle_category_id = 5; // 畜牧类别id
  12. string cattle_category_name = 6; // 畜牧类型名称
  13. int32 formula_type_id = 7; // 配方类型id
  14. string formula_type_name = 8; // 配方类型名称
  15. DataSource.Kind data_source_id = 9; // 数据来源
  16. string data_source_name = 10; // 数据来源
  17. string remarks = 11; // 备注
  18. int32 version = 12; // 版本号
  19. IsShow.Kind is_show = 13; // 是否启用
  20. IsShow.Kind is_modify = 14; // 是否可修改
  21. int32 created_at = 15; // 创建时间
  22. string created_at_format = 16; // 创建时间格式化
  23. string Pasture_name = 17; // 牧场名称
  24. }
  25. message SearchFeedFormulaRequest {
  26. int32 cattle_category_id = 1; // 分类id
  27. int32 formula_type_id = 2; // 配方类型id
  28. int32 data_source = 3; // 饲料来源
  29. IsShow.Kind is_show = 4; // 是否启用
  30. string name = 5; // 配方名称
  31. string remarks = 6; // 备注
  32. PaginationModel pagination = 7; // 分页
  33. }
  34. message SearchFeedFormulaListResponse {
  35. int32 page = 1;
  36. int32 page_size = 2;
  37. int32 total = 3;
  38. repeated AddFeedFormulaRequest list = 4;
  39. }
  40. // 是否启用
  41. message IsShowModifyFeedFormula {
  42. int32 feed_formula_id = 1;
  43. IsShow.Kind is_show = 2;
  44. int32 edit_type = 3; // 1 更新是否启用 2 更新 modify
  45. }