重构配方类控制器
This commit is contained in:
70
docs/docs.go
70
docs/docs.go
@@ -1657,7 +1657,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "获取营养种类列表",
|
||||
"parameters": [
|
||||
@@ -1727,7 +1727,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "创建营养种类",
|
||||
"parameters": [
|
||||
@@ -1775,7 +1775,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "获取营养种类详情",
|
||||
"parameters": [
|
||||
@@ -1822,7 +1822,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "更新营养种类",
|
||||
"parameters": [
|
||||
@@ -1875,7 +1875,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "删除营养种类",
|
||||
"parameters": [
|
||||
@@ -1909,7 +1909,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪年龄阶段列表",
|
||||
"parameters": [
|
||||
@@ -1973,7 +1973,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2021,7 +2021,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪年龄阶段详情",
|
||||
"parameters": [
|
||||
@@ -2068,7 +2068,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2121,7 +2121,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2155,7 +2155,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪品种列表",
|
||||
"parameters": [
|
||||
@@ -2219,7 +2219,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪品种",
|
||||
"parameters": [
|
||||
@@ -2267,7 +2267,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪品种详情",
|
||||
"parameters": [
|
||||
@@ -2314,7 +2314,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪品种",
|
||||
"parameters": [
|
||||
@@ -2367,7 +2367,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪品种",
|
||||
"parameters": [
|
||||
@@ -2401,7 +2401,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪类型列表",
|
||||
"parameters": [
|
||||
@@ -2483,7 +2483,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪类型",
|
||||
"parameters": [
|
||||
@@ -2531,7 +2531,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪类型详情",
|
||||
"parameters": [
|
||||
@@ -2578,7 +2578,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪类型",
|
||||
"parameters": [
|
||||
@@ -2631,7 +2631,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪类型",
|
||||
"parameters": [
|
||||
@@ -2668,7 +2668,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "全量更新猪类型的营养需求",
|
||||
"parameters": [
|
||||
@@ -2723,7 +2723,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "获取原料列表",
|
||||
"parameters": [
|
||||
@@ -2793,7 +2793,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "创建原料",
|
||||
"parameters": [
|
||||
@@ -2841,7 +2841,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "获取原料详情",
|
||||
"parameters": [
|
||||
@@ -2888,7 +2888,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "更新原料",
|
||||
"parameters": [
|
||||
@@ -2941,7 +2941,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "删除原料",
|
||||
"parameters": [
|
||||
@@ -2978,7 +2978,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "全量更新原料的营养成分",
|
||||
"parameters": [
|
||||
@@ -3202,7 +3202,6 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
7,
|
||||
-1,
|
||||
0,
|
||||
1,
|
||||
@@ -3212,12 +3211,12 @@ const docTemplate = `{
|
||||
5,
|
||||
-1,
|
||||
5,
|
||||
6
|
||||
6,
|
||||
7
|
||||
],
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-enum-varnames": [
|
||||
"_numLevels",
|
||||
"DebugLevel",
|
||||
"InfoLevel",
|
||||
"WarnLevel",
|
||||
@@ -3227,7 +3226,8 @@ const docTemplate = `{
|
||||
"FatalLevel",
|
||||
"_minLevel",
|
||||
"_maxLevel",
|
||||
"InvalidLevel"
|
||||
"InvalidLevel",
|
||||
"_numLevels"
|
||||
],
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
@@ -9799,7 +9799,6 @@ const docTemplate = `{
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"enum": [
|
||||
7,
|
||||
-1,
|
||||
0,
|
||||
1,
|
||||
@@ -9809,10 +9808,10 @@ const docTemplate = `{
|
||||
5,
|
||||
-1,
|
||||
5,
|
||||
6
|
||||
6,
|
||||
7
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"_numLevels",
|
||||
"DebugLevel",
|
||||
"InfoLevel",
|
||||
"WarnLevel",
|
||||
@@ -9822,7 +9821,8 @@ const docTemplate = `{
|
||||
"FatalLevel",
|
||||
"_minLevel",
|
||||
"_maxLevel",
|
||||
"InvalidLevel"
|
||||
"InvalidLevel",
|
||||
"_numLevels"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1649,7 +1649,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "获取营养种类列表",
|
||||
"parameters": [
|
||||
@@ -1719,7 +1719,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "创建营养种类",
|
||||
"parameters": [
|
||||
@@ -1767,7 +1767,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "获取营养种类详情",
|
||||
"parameters": [
|
||||
@@ -1814,7 +1814,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "更新营养种类",
|
||||
"parameters": [
|
||||
@@ -1867,7 +1867,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-营养"
|
||||
],
|
||||
"summary": "删除营养种类",
|
||||
"parameters": [
|
||||
@@ -1901,7 +1901,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪年龄阶段列表",
|
||||
"parameters": [
|
||||
@@ -1965,7 +1965,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2013,7 +2013,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪年龄阶段详情",
|
||||
"parameters": [
|
||||
@@ -2060,7 +2060,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2113,7 +2113,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪年龄阶段",
|
||||
"parameters": [
|
||||
@@ -2147,7 +2147,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪品种列表",
|
||||
"parameters": [
|
||||
@@ -2211,7 +2211,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪品种",
|
||||
"parameters": [
|
||||
@@ -2259,7 +2259,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪品种详情",
|
||||
"parameters": [
|
||||
@@ -2306,7 +2306,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪品种",
|
||||
"parameters": [
|
||||
@@ -2359,7 +2359,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪品种",
|
||||
"parameters": [
|
||||
@@ -2393,7 +2393,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪类型列表",
|
||||
"parameters": [
|
||||
@@ -2475,7 +2475,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "创建猪类型",
|
||||
"parameters": [
|
||||
@@ -2523,7 +2523,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "获取猪类型详情",
|
||||
"parameters": [
|
||||
@@ -2570,7 +2570,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "更新猪类型",
|
||||
"parameters": [
|
||||
@@ -2623,7 +2623,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "删除猪类型",
|
||||
"parameters": [
|
||||
@@ -2660,7 +2660,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-猪"
|
||||
],
|
||||
"summary": "全量更新猪类型的营养需求",
|
||||
"parameters": [
|
||||
@@ -2715,7 +2715,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "获取原料列表",
|
||||
"parameters": [
|
||||
@@ -2785,7 +2785,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "创建原料",
|
||||
"parameters": [
|
||||
@@ -2833,7 +2833,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "获取原料详情",
|
||||
"parameters": [
|
||||
@@ -2880,7 +2880,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "更新原料",
|
||||
"parameters": [
|
||||
@@ -2933,7 +2933,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "删除原料",
|
||||
"parameters": [
|
||||
@@ -2970,7 +2970,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"饲料管理"
|
||||
"饲料管理-原料"
|
||||
],
|
||||
"summary": "全量更新原料的营养成分",
|
||||
"parameters": [
|
||||
@@ -3194,7 +3194,6 @@
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
7,
|
||||
-1,
|
||||
0,
|
||||
1,
|
||||
@@ -3204,12 +3203,12 @@
|
||||
5,
|
||||
-1,
|
||||
5,
|
||||
6
|
||||
6,
|
||||
7
|
||||
],
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-enum-varnames": [
|
||||
"_numLevels",
|
||||
"DebugLevel",
|
||||
"InfoLevel",
|
||||
"WarnLevel",
|
||||
@@ -3219,7 +3218,8 @@
|
||||
"FatalLevel",
|
||||
"_minLevel",
|
||||
"_maxLevel",
|
||||
"InvalidLevel"
|
||||
"InvalidLevel",
|
||||
"_numLevels"
|
||||
],
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
@@ -9791,7 +9791,6 @@
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"enum": [
|
||||
7,
|
||||
-1,
|
||||
0,
|
||||
1,
|
||||
@@ -9801,10 +9800,10 @@
|
||||
5,
|
||||
-1,
|
||||
5,
|
||||
6
|
||||
6,
|
||||
7
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"_numLevels",
|
||||
"DebugLevel",
|
||||
"InfoLevel",
|
||||
"WarnLevel",
|
||||
@@ -9814,7 +9813,8 @@
|
||||
"FatalLevel",
|
||||
"_minLevel",
|
||||
"_maxLevel",
|
||||
"InvalidLevel"
|
||||
"InvalidLevel",
|
||||
"_numLevels"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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:
|
||||
- 邮件
|
||||
- 企业微信
|
||||
|
||||
Reference in New Issue
Block a user