实现配方领域关于猪模型和营养需求的增删改查

This commit is contained in:
2025-11-21 15:03:42 +08:00
parent a669bfda6c
commit 9996fcfd74
8 changed files with 565 additions and 76 deletions

View File

@@ -1826,7 +1826,6 @@ const docTemplate = `{
},
{
"enum": [
7,
-1,
0,
1,
@@ -1836,12 +1835,12 @@ const docTemplate = `{
5,
-1,
5,
6
6,
7
],
"type": "integer",
"format": "int32",
"x-enum-varnames": [
"_numLevels",
"DebugLevel",
"InfoLevel",
"WarnLevel",
@@ -1851,7 +1850,8 @@ const docTemplate = `{
"FatalLevel",
"_minLevel",
"_maxLevel",
"InvalidLevel"
"InvalidLevel",
"_numLevels"
],
"name": "level",
"in": "query"
@@ -7563,32 +7563,24 @@ const docTemplate = `{
"models.PigBatchStatus": {
"type": "string",
"enum": [
"保育",
"生长",
"育肥",
"生产中",
"待售",
"已出售",
"已归档"
],
"x-enum-comments": {
"BatchStatusActive": "饲养中",
"BatchStatusArchived": "批次结束(如全群淘汰等)",
"BatchStatusFinishing": "最后的育肥阶段",
"BatchStatusForSale": "达到出栏标准",
"BatchStatusGrowing": "生长育肥阶段",
"BatchStatusWeaning": "从断奶到保育结束"
"BatchStatusForSale": "达到出栏标准"
},
"x-enum-descriptions": [
"从断奶到保育结束",
"生长育肥阶段",
"最后的育肥阶段",
"饲养中",
"达到出栏标准",
"",
"批次结束(如全群淘汰等)"
],
"x-enum-varnames": [
"BatchStatusWeaning",
"BatchStatusGrowing",
"BatchStatusFinishing",
"BatchStatusActive",
"BatchStatusForSale",
"BatchStatusSold",
"BatchStatusArchived"
@@ -7837,7 +7829,6 @@ const docTemplate = `{
"type": "integer",
"format": "int32",
"enum": [
7,
-1,
0,
1,
@@ -7847,10 +7838,10 @@ const docTemplate = `{
5,
-1,
5,
6
6,
7
],
"x-enum-varnames": [
"_numLevels",
"DebugLevel",
"InfoLevel",
"WarnLevel",
@@ -7860,7 +7851,8 @@ const docTemplate = `{
"FatalLevel",
"_minLevel",
"_maxLevel",
"InvalidLevel"
"InvalidLevel",
"_numLevels"
]
}
},

View File

@@ -1818,7 +1818,6 @@
},
{
"enum": [
7,
-1,
0,
1,
@@ -1828,12 +1827,12 @@
5,
-1,
5,
6
6,
7
],
"type": "integer",
"format": "int32",
"x-enum-varnames": [
"_numLevels",
"DebugLevel",
"InfoLevel",
"WarnLevel",
@@ -1843,7 +1842,8 @@
"FatalLevel",
"_minLevel",
"_maxLevel",
"InvalidLevel"
"InvalidLevel",
"_numLevels"
],
"name": "level",
"in": "query"
@@ -7555,32 +7555,24 @@
"models.PigBatchStatus": {
"type": "string",
"enum": [
"保育",
"生长",
"育肥",
"生产中",
"待售",
"已出售",
"已归档"
],
"x-enum-comments": {
"BatchStatusActive": "饲养中",
"BatchStatusArchived": "批次结束(如全群淘汰等)",
"BatchStatusFinishing": "最后的育肥阶段",
"BatchStatusForSale": "达到出栏标准",
"BatchStatusGrowing": "生长育肥阶段",
"BatchStatusWeaning": "从断奶到保育结束"
"BatchStatusForSale": "达到出栏标准"
},
"x-enum-descriptions": [
"从断奶到保育结束",
"生长育肥阶段",
"最后的育肥阶段",
"饲养中",
"达到出栏标准",
"",
"批次结束(如全群淘汰等)"
],
"x-enum-varnames": [
"BatchStatusWeaning",
"BatchStatusGrowing",
"BatchStatusFinishing",
"BatchStatusActive",
"BatchStatusForSale",
"BatchStatusSold",
"BatchStatusArchived"
@@ -7829,7 +7821,6 @@
"type": "integer",
"format": "int32",
"enum": [
7,
-1,
0,
1,
@@ -7839,10 +7830,10 @@
5,
-1,
5,
6
6,
7
],
"x-enum-varnames": [
"_numLevels",
"DebugLevel",
"InfoLevel",
"WarnLevel",
@@ -7852,7 +7843,8 @@
"FatalLevel",
"_minLevel",
"_maxLevel",
"InvalidLevel"
"InvalidLevel",
"_numLevels"
]
}
},

View File

@@ -1905,30 +1905,22 @@ definitions:
- TreatmentLocationSickBay
models.PigBatchStatus:
enum:
- 保育
- 生长
- 育肥
- 生产中
- 待售
- 已出售
- 已归档
type: string
x-enum-comments:
BatchStatusActive: 饲养中
BatchStatusArchived: 批次结束(如全群淘汰等)
BatchStatusFinishing: 最后的育肥阶段
BatchStatusForSale: 达到出栏标准
BatchStatusGrowing: 生长育肥阶段
BatchStatusWeaning: 从断奶到保育结束
x-enum-descriptions:
- 从断奶到保育结束
- 生长育肥阶段
- 最后的育肥阶段
- 饲养中
- 达到出栏标准
- ""
- 批次结束(如全群淘汰等)
x-enum-varnames:
- BatchStatusWeaning
- BatchStatusGrowing
- BatchStatusFinishing
- BatchStatusActive
- BatchStatusForSale
- BatchStatusSold
- BatchStatusArchived
@@ -2129,7 +2121,6 @@ definitions:
- PlanTypeFilterSystem
zapcore.Level:
enum:
- 7
- -1
- 0
- 1
@@ -2140,10 +2131,10 @@ definitions:
- -1
- 5
- 6
- 7
format: int32
type: integer
x-enum-varnames:
- _numLevels
- DebugLevel
- InfoLevel
- WarnLevel
@@ -2154,6 +2145,7 @@ definitions:
- _minLevel
- _maxLevel
- InvalidLevel
- _numLevels
info:
contact:
email: divano@example.com
@@ -3270,7 +3262,6 @@ paths:
name: end_time
type: string
- enum:
- 7
- -1
- 0
- 1
@@ -3281,12 +3272,12 @@ paths:
- -1
- 5
- 6
- 7
format: int32
in: query
name: level
type: integer
x-enum-varnames:
- _numLevels
- DebugLevel
- InfoLevel
- WarnLevel
@@ -3297,6 +3288,7 @@ paths:
- _minLevel
- _maxLevel
- InvalidLevel
- _numLevels
- enum:
- 邮件
- 企业微信