移除旧接口和界面
This commit is contained in:
@@ -51,13 +51,13 @@
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Warn",
|
||||
"Error",
|
||||
"DPanic",
|
||||
"Panic",
|
||||
"Fatal"
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"dpanic",
|
||||
"panic",
|
||||
"fatal"
|
||||
],
|
||||
"type": "string",
|
||||
"x-enum-varnames": [
|
||||
@@ -167,13 +167,13 @@
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Warn",
|
||||
"Error",
|
||||
"DPanic",
|
||||
"Panic",
|
||||
"Fatal"
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"dpanic",
|
||||
"panic",
|
||||
"fatal"
|
||||
],
|
||||
"type": "string",
|
||||
"x-enum-varnames": [
|
||||
@@ -448,13 +448,13 @@
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Warn",
|
||||
"Error",
|
||||
"DPanic",
|
||||
"Panic",
|
||||
"Fatal"
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"dpanic",
|
||||
"panic",
|
||||
"fatal"
|
||||
],
|
||||
"type": "string",
|
||||
"x-enum-varnames": [
|
||||
@@ -735,13 +735,13 @@
|
||||
"parameters": [
|
||||
{
|
||||
"enum": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Warn",
|
||||
"Error",
|
||||
"DPanic",
|
||||
"Panic",
|
||||
"Fatal"
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"dpanic",
|
||||
"panic",
|
||||
"fatal"
|
||||
],
|
||||
"type": "string",
|
||||
"x-enum-varnames": [
|
||||
@@ -1714,85 +1714,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/monitor/feed-usage-records": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "根据提供的过滤条件,分页获取饲料使用记录",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据监控"
|
||||
],
|
||||
"summary": "获取饲料使用记录列表",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "end_time",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "feed_formula_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "operator_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "order_by",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page_size",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "pen_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "start_time",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/dto.ListFeedUsageRecordResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/monitor/medication-logs": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -2583,159 +2504,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/monitor/raw-material-purchases": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "根据提供的过滤条件,分页获取原料采购记录",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据监控"
|
||||
],
|
||||
"summary": "获取原料采购记录列表",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "end_time",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "order_by",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page_size",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "raw_material_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "start_time",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "supplier",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/dto.ListRawMaterialPurchaseResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/monitor/raw-material-stock-logs": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "根据提供的过滤条件,分页获取原料库存日志",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"数据监控"
|
||||
],
|
||||
"summary": "获取原料库存日志列表",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "end_time",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "order_by",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "page_size",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "raw_material_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "source_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "source_type",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "start_time",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/dto.ListRawMaterialStockLogResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/monitor/sensor-data": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -5640,49 +5408,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.FeedFormulaDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.FeedUsageRecordDTO": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.HistoricalAlarmDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5777,20 +5502,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ListFeedUsageRecordResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.FeedUsageRecordDTO"
|
||||
}
|
||||
},
|
||||
"pagination": {
|
||||
"$ref": "#/definitions/dto.PaginationDTO"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ListHistoricalAlarmResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5946,34 +5657,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ListRawMaterialPurchaseResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.RawMaterialPurchaseDTO"
|
||||
}
|
||||
},
|
||||
"pagination": {
|
||||
"$ref": "#/definitions/dto.PaginationDTO"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ListRawMaterialStockLogResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.RawMaterialStockLogDTO"
|
||||
}
|
||||
},
|
||||
"pagination": {
|
||||
"$ref": "#/definitions/dto.PaginationDTO"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ListSensorDataResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6211,17 +5894,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PenDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PenResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6728,75 +6400,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.RawMaterialDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.RawMaterialPurchaseDTO": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.RawMaterialStockLogDTO": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ReclassifyPenToNewBatchRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -7955,32 +7558,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"
|
||||
@@ -8135,13 +7730,13 @@
|
||||
"models.SeverityLevel": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Warn",
|
||||
"Error",
|
||||
"DPanic",
|
||||
"Panic",
|
||||
"Fatal"
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error",
|
||||
"dpanic",
|
||||
"panic",
|
||||
"fatal"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"DebugLevel",
|
||||
@@ -8153,25 +7748,6 @@
|
||||
"FatalLevel"
|
||||
]
|
||||
},
|
||||
"models.StockLogSourceType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"采购入库",
|
||||
"饲喂出库",
|
||||
"变质出库",
|
||||
"售卖出库",
|
||||
"杂用领取",
|
||||
"手动盘点"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"StockLogSourcePurchase",
|
||||
"StockLogSourceFeeding",
|
||||
"StockLogSourceDeteriorate",
|
||||
"StockLogSourceSale",
|
||||
"StockLogSourceMiscellaneous",
|
||||
"StockLogSourceManual"
|
||||
]
|
||||
},
|
||||
"models.TaskType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -8180,6 +7756,7 @@
|
||||
"下料",
|
||||
"全量采集",
|
||||
"告警通知",
|
||||
"通知刷新",
|
||||
"设备阈值检查",
|
||||
"区域阈值检查"
|
||||
],
|
||||
@@ -8189,6 +7766,7 @@
|
||||
"TaskTypeAreaCollectorThresholdCheck": "区域阈值检查任务",
|
||||
"TaskTypeDeviceThresholdCheck": "设备阈值检查任务",
|
||||
"TaskTypeFullCollection": "新增的全量采集任务",
|
||||
"TaskTypeNotificationRefresh": "通知刷新任务",
|
||||
"TaskTypeReleaseFeedWeight": "下料口释放指定重量任务",
|
||||
"TaskTypeWaiting": "等待任务"
|
||||
},
|
||||
@@ -8198,6 +7776,7 @@
|
||||
"下料口释放指定重量任务",
|
||||
"新增的全量采集任务",
|
||||
"告警通知任务",
|
||||
"通知刷新任务",
|
||||
"设备阈值检查任务",
|
||||
"区域阈值检查任务"
|
||||
],
|
||||
@@ -8207,6 +7786,7 @@
|
||||
"TaskTypeReleaseFeedWeight",
|
||||
"TaskTypeFullCollection",
|
||||
"TaskTypeAlarmNotification",
|
||||
"TaskTypeNotificationRefresh",
|
||||
"TaskTypeDeviceThresholdCheck",
|
||||
"TaskTypeAreaCollectorThresholdCheck"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user