pasture.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. syntax = "proto3";
  2. package backend.operation;
  3. option go_package = ".;operationPb";
  4. import "backend/operation/enum.proto";
  5. import "backend/operation/pagination.proto";
  6. message AddPastureRequest {
  7. int64 id = 1;
  8. string name = 2; // 牧场名称
  9. string account = 3; // 登录账号名称
  10. string manager_user = 4; // 牧场负责人名称
  11. string manager_phone = 5; // 牧场负责人手机号
  12. string address = 6; // 牧场地址
  13. IsShow.Kind is_show = 7; // 是否启用
  14. int64 created_at = 8; // 创建时间
  15. string created_at_format = 9; // 创建时间格式化
  16. }
  17. message SearchPastureRequest {
  18. string name = 1; // 牧场名称
  19. string manager_user = 2; // 牧场负责人名称
  20. string manager_phone = 3; // 牧场负责人手机号
  21. int64 start_time = 4; // 开始时间
  22. int64 end_time = 5; // 结束时间
  23. PaginationModel pagination = 6; // 分页
  24. }
  25. message SearchPastureResponse {
  26. int32 page = 1;
  27. int32 total = 2;
  28. repeated AddPastureRequest list = 3;
  29. }
  30. // 重置牧场登录密码
  31. message RestPasswordGroupPasture {
  32. int64 pasture_id = 1; // 牧场id
  33. string password = 2; // 密码(md5加密过的)
  34. }
  35. message IsShowGroupPasture {
  36. int64 pasture_id = 1; // 牧场id
  37. IsShow.Kind is_show = 2; // 是否开启
  38. }
  39. // 添加牧畜分类
  40. message AddCattleCategoryRequest {
  41. int64 id = 1;
  42. CattleCategoryParent.Kind parent_id = 2; // 父类id
  43. string parent_name = 3; // 父类名称
  44. string name = 4; // 牧畜分类名称
  45. string number = 5; // 畜牧类别编号
  46. IsShow.Kind is_show = 6; // 是否启用
  47. int64 created_at = 7; // 创建时间
  48. string created_at_format = 8; // 创建时间格式
  49. }
  50. // 是否启用
  51. message IsShowCattleCategory {
  52. int64 cattle_category_id = 1;
  53. IsShow.Kind is_show = 2;
  54. }
  55. // 畜牧分类查询列表
  56. message SearchCattleCategoryRequest {
  57. string parent_name = 1;
  58. IsShow.Kind is_show = 2;
  59. string name = 3;
  60. PaginationModel pagination = 4; // 分页
  61. }
  62. message SearchCattleCategoryResponse {
  63. int32 page = 1;
  64. int32 total = 2;
  65. repeated AddCattleCategoryRequest list = 3;
  66. }
  67. // 添加饲料分类
  68. message AddForageCategoryRequest {
  69. int64 id = 1;
  70. ForageCategoryParent.Kind parent_id = 2; // 父类id
  71. string parent_name = 3; // 父类名称
  72. string name = 4; // 牧畜分类名称
  73. string number = 5; // 畜牧类别编号
  74. IsShow.Kind is_show = 6; // 是否启用
  75. int64 created_at = 7; // 创建时间
  76. string created_at_format = 8; // 创建时间格式
  77. }
  78. // 是否启用
  79. message IsShowForageCategory {
  80. int64 forage_category_id = 1;
  81. IsShow.Kind is_show = 2;
  82. }
  83. // 饲料分类查询列表
  84. message SearchForageCategoryRequest {
  85. string parent_name = 1;
  86. IsShow.Kind is_show = 2;
  87. string name = 3;
  88. PaginationModel pagination = 4; // 分页
  89. }
  90. message SearchForageCategoryResponse {
  91. int32 page = 1;
  92. int32 total = 2;
  93. repeated AddForageCategoryRequest list = 3;
  94. }