重构配方类控制器

This commit is contained in:
2025-11-23 14:49:55 +08:00
parent 851682d579
commit 1b2e211bfa
12 changed files with 1245 additions and 1110 deletions

View File

@@ -2535,7 +2535,6 @@ definitions:
- PlanTypeFilterSystem
zapcore.Level:
enum:
- 7
- -1
- 0
- 1
@@ -2546,10 +2545,10 @@ definitions:
- -1
- 5
- 6
- 7
format: int32
type: integer
x-enum-varnames:
- _numLevels
- DebugLevel
- InfoLevel
- WarnLevel
@@ -2560,6 +2559,7 @@ definitions:
- _minLevel
- _maxLevel
- InvalidLevel
- _numLevels
info:
contact:
email: divano@example.com
@@ -3618,7 +3618,7 @@ paths:
- BearerAuth: []
summary: 获取营养种类列表
tags:
- 饲料管理
- 饲料管理-营养
post:
consumes:
- application/json
@@ -3646,7 +3646,7 @@ paths:
- BearerAuth: []
summary: 创建营养种类
tags:
- 饲料管理
- 饲料管理-营养
/api/v1/feed/nutrients/{id}:
delete:
description: 根据ID删除营养种类。
@@ -3667,7 +3667,7 @@ paths:
- BearerAuth: []
summary: 删除营养种类
tags:
- 饲料管理
- 饲料管理-营养
get:
description: 根据ID获取单个营养种类的详细信息。
parameters:
@@ -3692,7 +3692,7 @@ paths:
- BearerAuth: []
summary: 获取营养种类详情
tags:
- 饲料管理
- 饲料管理-营养
put:
consumes:
- application/json
@@ -3725,7 +3725,7 @@ paths:
- BearerAuth: []
summary: 更新营养种类
tags:
- 饲料管理
- 饲料管理-营养
/api/v1/feed/pig-age-stages:
get:
description: 获取所有猪年龄阶段的列表,支持分页和过滤。
@@ -3762,7 +3762,7 @@ paths:
- BearerAuth: []
summary: 获取猪年龄阶段列表
tags:
- 饲料管理
- 饲料管理-猪
post:
consumes:
- application/json
@@ -3790,7 +3790,7 @@ paths:
- BearerAuth: []
summary: 创建猪年龄阶段
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-age-stages/{id}:
delete:
description: 根据ID删除猪年龄阶段。
@@ -3811,7 +3811,7 @@ paths:
- BearerAuth: []
summary: 删除猪年龄阶段
tags:
- 饲料管理
- 饲料管理-猪
get:
description: 根据ID获取单个猪年龄阶段的详细信息。
parameters:
@@ -3836,7 +3836,7 @@ paths:
- BearerAuth: []
summary: 获取猪年龄阶段详情
tags:
- 饲料管理
- 饲料管理-猪
put:
consumes:
- application/json
@@ -3869,7 +3869,7 @@ paths:
- BearerAuth: []
summary: 更新猪年龄阶段
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-breeds:
get:
description: 获取所有猪品种的列表,支持分页和过滤。
@@ -3906,7 +3906,7 @@ paths:
- BearerAuth: []
summary: 获取猪品种列表
tags:
- 饲料管理
- 饲料管理-猪
post:
consumes:
- application/json
@@ -3934,7 +3934,7 @@ paths:
- BearerAuth: []
summary: 创建猪品种
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-breeds/{id}:
delete:
description: 根据ID删除猪品种。
@@ -3955,7 +3955,7 @@ paths:
- BearerAuth: []
summary: 删除猪品种
tags:
- 饲料管理
- 饲料管理-猪
get:
description: 根据ID获取单个猪品种的详细信息。
parameters:
@@ -3980,7 +3980,7 @@ paths:
- BearerAuth: []
summary: 获取猪品种详情
tags:
- 饲料管理
- 饲料管理-猪
put:
consumes:
- application/json
@@ -4013,7 +4013,7 @@ paths:
- BearerAuth: []
summary: 更新猪品种
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-types:
get:
description: 获取所有猪类型的列表,支持分页和过滤。
@@ -4062,7 +4062,7 @@ paths:
- BearerAuth: []
summary: 获取猪类型列表
tags:
- 饲料管理
- 饲料管理-猪
post:
consumes:
- application/json
@@ -4090,7 +4090,7 @@ paths:
- BearerAuth: []
summary: 创建猪类型
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-types/{id}:
delete:
description: 根据ID删除猪类型。
@@ -4111,7 +4111,7 @@ paths:
- BearerAuth: []
summary: 删除猪类型
tags:
- 饲料管理
- 饲料管理-猪
get:
description: 根据ID获取单个猪类型的详细信息。
parameters:
@@ -4136,7 +4136,7 @@ paths:
- BearerAuth: []
summary: 获取猪类型详情
tags:
- 饲料管理
- 饲料管理-猪
put:
consumes:
- application/json
@@ -4169,7 +4169,7 @@ paths:
- BearerAuth: []
summary: 更新猪类型
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/pig-types/{id}/nutrient-requirements:
put:
consumes:
@@ -4203,7 +4203,7 @@ paths:
- BearerAuth: []
summary: 全量更新猪类型的营养需求
tags:
- 饲料管理
- 饲料管理-猪
/api/v1/feed/raw-materials:
get:
description: 获取所有原料的列表,支持分页和过滤。
@@ -4244,7 +4244,7 @@ paths:
- BearerAuth: []
summary: 获取原料列表
tags:
- 饲料管理
- 饲料管理-原料
post:
consumes:
- application/json
@@ -4272,7 +4272,7 @@ paths:
- BearerAuth: []
summary: 创建原料
tags:
- 饲料管理
- 饲料管理-原料
/api/v1/feed/raw-materials/{id}:
delete:
description: 根据ID删除原料。
@@ -4293,7 +4293,7 @@ paths:
- BearerAuth: []
summary: 删除原料
tags:
- 饲料管理
- 饲料管理-原料
get:
description: 根据ID获取单个原料的详细信息。
parameters:
@@ -4318,7 +4318,7 @@ paths:
- BearerAuth: []
summary: 获取原料详情
tags:
- 饲料管理
- 饲料管理-原料
put:
consumes:
- application/json
@@ -4351,7 +4351,7 @@ paths:
- BearerAuth: []
summary: 更新原料
tags:
- 饲料管理
- 饲料管理-原料
/api/v1/feed/raw-materials/{id}/nutrients:
put:
consumes:
@@ -4385,7 +4385,7 @@ paths:
- BearerAuth: []
summary: 全量更新原料的营养成分
tags:
- 饲料管理
- 饲料管理-原料
/api/v1/monitor/device-command-logs:
get:
description: 根据提供的过滤条件,分页获取设备命令日志
@@ -4484,7 +4484,6 @@ paths:
name: end_time
type: string
- enum:
- 7
- -1
- 0
- 1
@@ -4495,12 +4494,12 @@ paths:
- -1
- 5
- 6
- 7
format: int32
in: query
name: level
type: integer
x-enum-varnames:
- _numLevels
- DebugLevel
- InfoLevel
- WarnLevel
@@ -4511,6 +4510,7 @@ paths:
- _minLevel
- _maxLevel
- InvalidLevel
- _numLevels
- enum:
- 邮件
- 企业微信