1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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; // 畜牧类别id
- string cattle_category_name = 6; // 畜牧类型名称
- int32 formula_type_id = 7; // 配方类型id
- 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; // 分类id
- int32 formula_type_id = 2; // 配方类型id
- 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; // 1 更新是否启用 2 更新 modify
- }
- // 配方编码
- message UniqueID {
- int32 code = 1;
- string msg = 2;
- message UniqueData {
- string encode_number = 1;
- }
- UniqueData data = 3;
- }
- // DistributeFeedFormulaRequest 饲料配方下发
- message DistributeFeedFormulaRequest {
- repeated int32 pasture_ids = 1; // 牧场ids集合
- repeated int32 feed_formula_ids = 2; // 配方ids集合
- }
- // 配方使用概况
- message FeedFormulaUsageRequest {
- int32 feed_formula_id = 1; // 饲料配方id
- string start_time = 2; // 开始时间
- string end_time = 3; // 结束时间
- }
- // 配方使用概况
- message FeedFormulaUsageResponse {
- repeated FeedFormulaUsageList list = 1;
- }
- // 配方使用概况
- message FeedFormulaUsageList {
- int32 pasture_id = 1;
- string pasture_name = 2;
- }
|