syntax = "proto3"; package backend.operation; option go_package = ".;operationPb"; import "backend/operation/enum.proto"; import "backend/operation/pagination.proto"; message AddPastureRequest { int64 id = 1; string name = 2; // 牧场名称 string account = 3; // 登录账号名称 string manager_user = 4; // 牧场负责人名称 string manager_phone = 5; // 牧场负责人手机号 string address = 6; // 牧场地址 IsShow.Kind is_show = 7; // 是否启用 int64 created_at = 8; // 创建时间 string created_at_format = 9; // 创建时间格式化 } message SearchPastureRequest { string name = 1; // 牧场名称 string manager_user = 2; // 牧场负责人名称 string manager_phone = 3; // 牧场负责人手机号 int64 start_time = 4; // 开始时间 int64 end_time = 5; // 结束时间 PaginationModel pagination = 6; // 分页 } message SearchPastureResponse { int32 page = 1; int32 total = 2; repeated AddPastureRequest list = 3; } // 重置牧场登录密码 message RestPasswordGroupPasture { int64 pasture_id = 1; // 牧场id string password = 2; // 密码(md5加密过的) } message IsShowGroupPasture { int64 pasture_id = 1; // 牧场id IsShow.Kind is_show = 2; // 是否开启 } // 添加牧畜分类 message AddCattleCategoryRequest { int64 id = 1; CattleCategoryParent.Kind parent_id = 2; // 父类id string parent_name = 3; // 父类名称 string name = 4; // 牧畜分类名称 string number = 5; // 畜牧类别编号 IsShow.Kind is_show = 6; // 是否启用 int64 created_at = 7; // 创建时间 string created_at_format = 8; // 创建时间格式 } // 是否启用 message IsShowCattleCategory { int64 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 page = 1; int32 total = 2; repeated AddCattleCategoryRequest list = 3; } // 添加饲料分类 message AddForageCategoryRequest { int64 id = 1; ForageCategoryParent.Kind parent_id = 2; // 父类id string parent_name = 3; // 父类名称 string name = 4; // 牧畜分类名称 string number = 5; // 畜牧类别编号 IsShow.Kind is_show = 6; // 是否启用 int64 created_at = 7; // 创建时间 string created_at_format = 8; // 创建时间格式 } // 是否启用 message IsShowForageCategory { int64 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 page = 1; int32 total = 2; repeated AddForageCategoryRequest list = 3; }