实现修改猪营养需求
This commit is contained in:
@@ -1120,6 +1120,22 @@ definitions:
|
||||
description: 营养素名称
|
||||
type: string
|
||||
type: object
|
||||
dto.PigNutrientRequirementItem:
|
||||
properties:
|
||||
max_requirement:
|
||||
description: 最高营养需求量
|
||||
minimum: 0
|
||||
type: number
|
||||
min_requirement:
|
||||
description: 最低营养需求量
|
||||
minimum: 0
|
||||
type: number
|
||||
nutrient_id:
|
||||
description: 营养素ID
|
||||
type: integer
|
||||
required:
|
||||
- nutrient_id
|
||||
type: object
|
||||
dto.PigPurchaseDTO:
|
||||
properties:
|
||||
created_at:
|
||||
@@ -1913,6 +1929,15 @@ definitions:
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
dto.UpdatePigTypeNutrientRequirementsRequest:
|
||||
properties:
|
||||
nutrient_requirements:
|
||||
items:
|
||||
$ref: '#/definitions/dto.PigNutrientRequirementItem'
|
||||
type: array
|
||||
required:
|
||||
- nutrient_requirements
|
||||
type: object
|
||||
dto.UpdatePigTypeRequest:
|
||||
properties:
|
||||
age_stage_id:
|
||||
@@ -2510,6 +2535,7 @@ definitions:
|
||||
- PlanTypeFilterSystem
|
||||
zapcore.Level:
|
||||
enum:
|
||||
- 7
|
||||
- -1
|
||||
- 0
|
||||
- 1
|
||||
@@ -2520,10 +2546,10 @@ definitions:
|
||||
- -1
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
format: int32
|
||||
type: integer
|
||||
x-enum-varnames:
|
||||
- _numLevels
|
||||
- DebugLevel
|
||||
- InfoLevel
|
||||
- WarnLevel
|
||||
@@ -2534,7 +2560,6 @@ definitions:
|
||||
- _minLevel
|
||||
- _maxLevel
|
||||
- InvalidLevel
|
||||
- _numLevels
|
||||
info:
|
||||
contact:
|
||||
email: divano@example.com
|
||||
@@ -4145,6 +4170,40 @@ paths:
|
||||
summary: 更新猪类型
|
||||
tags:
|
||||
- 饲料管理
|
||||
/api/v1/feed/pig-types/{id}/nutrient-requirements:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 根据猪类型ID,替换其所有的营养需求信息。这是一个覆盖操作。
|
||||
parameters:
|
||||
- description: 猪类型ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: 新的营养需求列表
|
||||
in: body
|
||||
name: nutrientRequirements
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.UpdatePigTypeNutrientRequirementsRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 业务码为200代表更新成功
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/controller.Response'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/dto.PigTypeResponse'
|
||||
type: object
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 全量更新猪类型的营养需求
|
||||
tags:
|
||||
- 饲料管理
|
||||
/api/v1/feed/raw-materials:
|
||||
get:
|
||||
description: 获取所有原料的列表,支持分页和过滤。
|
||||
@@ -4425,6 +4484,7 @@ paths:
|
||||
name: end_time
|
||||
type: string
|
||||
- enum:
|
||||
- 7
|
||||
- -1
|
||||
- 0
|
||||
- 1
|
||||
@@ -4435,12 +4495,12 @@ paths:
|
||||
- -1
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
format: int32
|
||||
in: query
|
||||
name: level
|
||||
type: integer
|
||||
x-enum-varnames:
|
||||
- _numLevels
|
||||
- DebugLevel
|
||||
- InfoLevel
|
||||
- WarnLevel
|
||||
@@ -4451,7 +4511,6 @@ paths:
|
||||
- _minLevel
|
||||
- _maxLevel
|
||||
- InvalidLevel
|
||||
- _numLevels
|
||||
- enum:
|
||||
- 邮件
|
||||
- 企业微信
|
||||
|
||||
Reference in New Issue
Block a user