删除原有食物逻辑和模型
新增原料和营养价值表和原料库存日志和营养表定义
This commit is contained in:
@@ -432,34 +432,6 @@ definitions:
|
||||
thresholds:
|
||||
type: number
|
||||
type: object
|
||||
dto.FeedFormulaDTO:
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
dto.FeedUsageRecordDTO:
|
||||
properties:
|
||||
amount:
|
||||
type: number
|
||||
feed_formula:
|
||||
$ref: '#/definitions/dto.FeedFormulaDTO'
|
||||
feed_formula_id:
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
operator_id:
|
||||
type: integer
|
||||
pen:
|
||||
$ref: '#/definitions/dto.PenDTO'
|
||||
pen_id:
|
||||
type: integer
|
||||
recorded_at:
|
||||
type: string
|
||||
remarks:
|
||||
type: string
|
||||
type: object
|
||||
dto.HistoricalAlarmDTO:
|
||||
properties:
|
||||
alarm_code:
|
||||
@@ -521,15 +493,6 @@ definitions:
|
||||
pagination:
|
||||
$ref: '#/definitions/dto.PaginationDTO'
|
||||
type: object
|
||||
dto.ListFeedUsageRecordResponse:
|
||||
properties:
|
||||
list:
|
||||
items:
|
||||
$ref: '#/definitions/dto.FeedUsageRecordDTO'
|
||||
type: array
|
||||
pagination:
|
||||
$ref: '#/definitions/dto.PaginationDTO'
|
||||
type: object
|
||||
dto.ListHistoricalAlarmResponse:
|
||||
properties:
|
||||
list:
|
||||
@@ -630,24 +593,6 @@ definitions:
|
||||
example: 100
|
||||
type: integer
|
||||
type: object
|
||||
dto.ListRawMaterialPurchaseResponse:
|
||||
properties:
|
||||
list:
|
||||
items:
|
||||
$ref: '#/definitions/dto.RawMaterialPurchaseDTO'
|
||||
type: array
|
||||
pagination:
|
||||
$ref: '#/definitions/dto.PaginationDTO'
|
||||
type: object
|
||||
dto.ListRawMaterialStockLogResponse:
|
||||
properties:
|
||||
list:
|
||||
items:
|
||||
$ref: '#/definitions/dto.RawMaterialStockLogDTO'
|
||||
type: array
|
||||
pagination:
|
||||
$ref: '#/definitions/dto.PaginationDTO'
|
||||
type: object
|
||||
dto.ListSensorDataResponse:
|
||||
properties:
|
||||
list:
|
||||
@@ -806,13 +751,6 @@ definitions:
|
||||
total:
|
||||
type: integer
|
||||
type: object
|
||||
dto.PenDTO:
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
dto.PenResponse:
|
||||
properties:
|
||||
capacity:
|
||||
@@ -1142,51 +1080,6 @@ definitions:
|
||||
$ref: '#/definitions/dto.TaskResponse'
|
||||
type: array
|
||||
type: object
|
||||
dto.RawMaterialDTO:
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
dto.RawMaterialPurchaseDTO:
|
||||
properties:
|
||||
amount:
|
||||
type: number
|
||||
created_at:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
purchase_date:
|
||||
type: string
|
||||
raw_material:
|
||||
$ref: '#/definitions/dto.RawMaterialDTO'
|
||||
raw_material_id:
|
||||
type: integer
|
||||
supplier:
|
||||
type: string
|
||||
total_price:
|
||||
type: number
|
||||
unit_price:
|
||||
type: number
|
||||
type: object
|
||||
dto.RawMaterialStockLogDTO:
|
||||
properties:
|
||||
change_amount:
|
||||
type: number
|
||||
happened_at:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
raw_material_id:
|
||||
type: integer
|
||||
remarks:
|
||||
type: string
|
||||
source_id:
|
||||
type: integer
|
||||
source_type:
|
||||
$ref: '#/definitions/models.StockLogSourceType'
|
||||
type: object
|
||||
dto.ReclassifyPenToNewBatchRequest:
|
||||
properties:
|
||||
pen_id:
|
||||
@@ -2159,13 +2052,13 @@ definitions:
|
||||
- SensorTypeWeight
|
||||
models.SeverityLevel:
|
||||
enum:
|
||||
- Debug
|
||||
- Info
|
||||
- Warn
|
||||
- Error
|
||||
- DPanic
|
||||
- Panic
|
||||
- Fatal
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- dpanic
|
||||
- panic
|
||||
- fatal
|
||||
type: string
|
||||
x-enum-varnames:
|
||||
- DebugLevel
|
||||
@@ -2175,22 +2068,6 @@ definitions:
|
||||
- DPanicLevel
|
||||
- PanicLevel
|
||||
- FatalLevel
|
||||
models.StockLogSourceType:
|
||||
enum:
|
||||
- 采购入库
|
||||
- 饲喂出库
|
||||
- 变质出库
|
||||
- 售卖出库
|
||||
- 杂用领取
|
||||
- 手动盘点
|
||||
type: string
|
||||
x-enum-varnames:
|
||||
- StockLogSourcePurchase
|
||||
- StockLogSourceFeeding
|
||||
- StockLogSourceDeteriorate
|
||||
- StockLogSourceSale
|
||||
- StockLogSourceMiscellaneous
|
||||
- StockLogSourceManual
|
||||
models.TaskType:
|
||||
enum:
|
||||
- 计划分析
|
||||
@@ -2198,6 +2075,7 @@ definitions:
|
||||
- 下料
|
||||
- 全量采集
|
||||
- 告警通知
|
||||
- 通知刷新
|
||||
- 设备阈值检查
|
||||
- 区域阈值检查
|
||||
type: string
|
||||
@@ -2207,6 +2085,7 @@ definitions:
|
||||
TaskTypeAreaCollectorThresholdCheck: 区域阈值检查任务
|
||||
TaskTypeDeviceThresholdCheck: 设备阈值检查任务
|
||||
TaskTypeFullCollection: 新增的全量采集任务
|
||||
TaskTypeNotificationRefresh: 通知刷新任务
|
||||
TaskTypeReleaseFeedWeight: 下料口释放指定重量任务
|
||||
TaskTypeWaiting: 等待任务
|
||||
x-enum-descriptions:
|
||||
@@ -2215,6 +2094,7 @@ definitions:
|
||||
- 下料口释放指定重量任务
|
||||
- 新增的全量采集任务
|
||||
- 告警通知任务
|
||||
- 通知刷新任务
|
||||
- 设备阈值检查任务
|
||||
- 区域阈值检查任务
|
||||
x-enum-varnames:
|
||||
@@ -2223,6 +2103,7 @@ definitions:
|
||||
- TaskTypeReleaseFeedWeight
|
||||
- TaskTypeFullCollection
|
||||
- TaskTypeAlarmNotification
|
||||
- TaskTypeNotificationRefresh
|
||||
- TaskTypeDeviceThresholdCheck
|
||||
- TaskTypeAreaCollectorThresholdCheck
|
||||
models.ValueDescriptor:
|
||||
@@ -2248,6 +2129,7 @@ definitions:
|
||||
- PlanTypeFilterSystem
|
||||
zapcore.Level:
|
||||
enum:
|
||||
- 7
|
||||
- -1
|
||||
- 0
|
||||
- 1
|
||||
@@ -2258,10 +2140,10 @@ definitions:
|
||||
- -1
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
format: int32
|
||||
type: integer
|
||||
x-enum-varnames:
|
||||
- _numLevels
|
||||
- DebugLevel
|
||||
- InfoLevel
|
||||
- WarnLevel
|
||||
@@ -2272,7 +2154,6 @@ definitions:
|
||||
- _minLevel
|
||||
- _maxLevel
|
||||
- InvalidLevel
|
||||
- _numLevels
|
||||
info:
|
||||
contact:
|
||||
email: divano@example.com
|
||||
@@ -2353,13 +2234,13 @@ paths:
|
||||
type: boolean
|
||||
- description: 按告警严重性等级过滤
|
||||
enum:
|
||||
- Debug
|
||||
- Info
|
||||
- Warn
|
||||
- Error
|
||||
- DPanic
|
||||
- Panic
|
||||
- Fatal
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- dpanic
|
||||
- panic
|
||||
- fatal
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
@@ -2430,13 +2311,13 @@ paths:
|
||||
type: integer
|
||||
- description: 按告警等级过滤
|
||||
enum:
|
||||
- Debug
|
||||
- Info
|
||||
- Warn
|
||||
- Error
|
||||
- DPanic
|
||||
- Panic
|
||||
- Fatal
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- dpanic
|
||||
- panic
|
||||
- fatal
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
@@ -2612,13 +2493,13 @@ paths:
|
||||
type: integer
|
||||
- description: 按告警等级过滤
|
||||
enum:
|
||||
- Debug
|
||||
- Info
|
||||
- Warn
|
||||
- Error
|
||||
- DPanic
|
||||
- Panic
|
||||
- Fatal
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- dpanic
|
||||
- panic
|
||||
- fatal
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
@@ -2798,13 +2679,13 @@ paths:
|
||||
parameters:
|
||||
- description: 按告警严重性等级过滤
|
||||
enum:
|
||||
- Debug
|
||||
- Info
|
||||
- Warn
|
||||
- Error
|
||||
- DPanic
|
||||
- Panic
|
||||
- Fatal
|
||||
- debug
|
||||
- info
|
||||
- warn
|
||||
- error
|
||||
- dpanic
|
||||
- panic
|
||||
- fatal
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
@@ -3333,51 +3214,6 @@ paths:
|
||||
summary: 获取设备命令日志列表
|
||||
tags:
|
||||
- 数据监控
|
||||
/api/v1/monitor/feed-usage-records:
|
||||
get:
|
||||
description: 根据提供的过滤条件,分页获取饲料使用记录
|
||||
parameters:
|
||||
- in: query
|
||||
name: end_time
|
||||
type: string
|
||||
- in: query
|
||||
name: feed_formula_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: operator_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: order_by
|
||||
type: string
|
||||
- in: query
|
||||
name: page
|
||||
type: integer
|
||||
- in: query
|
||||
name: page_size
|
||||
type: integer
|
||||
- in: query
|
||||
name: pen_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: start_time
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/controller.Response'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/dto.ListFeedUsageRecordResponse'
|
||||
type: object
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 获取饲料使用记录列表
|
||||
tags:
|
||||
- 数据监控
|
||||
/api/v1/monitor/medication-logs:
|
||||
get:
|
||||
description: 根据提供的过滤条件,分页获取用药记录
|
||||
@@ -3434,6 +3270,7 @@ paths:
|
||||
name: end_time
|
||||
type: string
|
||||
- enum:
|
||||
- 7
|
||||
- -1
|
||||
- 0
|
||||
- 1
|
||||
@@ -3444,12 +3281,12 @@ paths:
|
||||
- -1
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
format: int32
|
||||
in: query
|
||||
name: level
|
||||
type: integer
|
||||
x-enum-varnames:
|
||||
- _numLevels
|
||||
- DebugLevel
|
||||
- InfoLevel
|
||||
- WarnLevel
|
||||
@@ -3460,7 +3297,6 @@ paths:
|
||||
- _minLevel
|
||||
- _maxLevel
|
||||
- InvalidLevel
|
||||
- _numLevels
|
||||
- enum:
|
||||
- 邮件
|
||||
- 企业微信
|
||||
@@ -3846,93 +3682,6 @@ paths:
|
||||
summary: 获取计划执行日志列表
|
||||
tags:
|
||||
- 数据监控
|
||||
/api/v1/monitor/raw-material-purchases:
|
||||
get:
|
||||
description: 根据提供的过滤条件,分页获取原料采购记录
|
||||
parameters:
|
||||
- in: query
|
||||
name: end_time
|
||||
type: string
|
||||
- in: query
|
||||
name: order_by
|
||||
type: string
|
||||
- in: query
|
||||
name: page
|
||||
type: integer
|
||||
- in: query
|
||||
name: page_size
|
||||
type: integer
|
||||
- in: query
|
||||
name: raw_material_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: start_time
|
||||
type: string
|
||||
- in: query
|
||||
name: supplier
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/controller.Response'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/dto.ListRawMaterialPurchaseResponse'
|
||||
type: object
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 获取原料采购记录列表
|
||||
tags:
|
||||
- 数据监控
|
||||
/api/v1/monitor/raw-material-stock-logs:
|
||||
get:
|
||||
description: 根据提供的过滤条件,分页获取原料库存日志
|
||||
parameters:
|
||||
- in: query
|
||||
name: end_time
|
||||
type: string
|
||||
- in: query
|
||||
name: order_by
|
||||
type: string
|
||||
- in: query
|
||||
name: page
|
||||
type: integer
|
||||
- in: query
|
||||
name: page_size
|
||||
type: integer
|
||||
- in: query
|
||||
name: raw_material_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: source_id
|
||||
type: integer
|
||||
- in: query
|
||||
name: source_type
|
||||
type: string
|
||||
- in: query
|
||||
name: start_time
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/controller.Response'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/dto.ListRawMaterialStockLogResponse'
|
||||
type: object
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 获取原料库存日志列表
|
||||
tags:
|
||||
- 数据监控
|
||||
/api/v1/monitor/sensor-data:
|
||||
get:
|
||||
description: 根据提供的过滤条件,分页获取传感器数据
|
||||
|
||||
Reference in New Issue
Block a user