调整swag
This commit is contained in:
96
docs/docs.go
96
docs/docs.go
@@ -899,12 +899,6 @@ const docTemplate = `{
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -949,18 +943,6 @@ const docTemplate = `{
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1002,24 +984,6 @@ const docTemplate = `{
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1071,24 +1035,6 @@ const docTemplate = `{
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误或无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1116,24 +1062,6 @@ const docTemplate = `{
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1175,30 +1103,6 @@ const docTemplate = `{
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误或无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次或猪栏不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "业务逻辑冲突 (如猪栏已被使用)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -888,12 +888,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -938,18 +932,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -991,24 +973,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1060,24 +1024,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误或无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1105,24 +1051,6 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1164,30 +1092,6 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "请求参数错误或无效的ID格式",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "猪批次或猪栏不存在",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "业务逻辑冲突 (如猪栏已被使用)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "内部服务器错误",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1344,10 +1344,6 @@ paths:
|
||||
$ref: '#/definitions/dto.PigBatchResponseDTO'
|
||||
type: array
|
||||
type: object
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 获取猪批次列表
|
||||
tags:
|
||||
- 猪批次管理
|
||||
@@ -1374,14 +1370,6 @@ paths:
|
||||
data:
|
||||
$ref: '#/definitions/dto.PigBatchResponseDTO'
|
||||
type: object
|
||||
"400":
|
||||
description: 请求参数错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 创建猪批次
|
||||
tags:
|
||||
- 猪批次管理
|
||||
@@ -1401,18 +1389,6 @@ paths:
|
||||
description: 删除成功
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"400":
|
||||
description: 无效的ID格式
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"404":
|
||||
description: 猪批次不存在
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 删除猪批次
|
||||
tags:
|
||||
- 猪批次管理
|
||||
@@ -1436,18 +1412,6 @@ paths:
|
||||
data:
|
||||
$ref: '#/definitions/dto.PigBatchResponseDTO'
|
||||
type: object
|
||||
"400":
|
||||
description: 无效的ID格式
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"404":
|
||||
description: 猪批次不存在
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 获取单个猪批次
|
||||
tags:
|
||||
- 猪批次管理
|
||||
@@ -1479,18 +1443,6 @@ paths:
|
||||
data:
|
||||
$ref: '#/definitions/dto.PigBatchResponseDTO'
|
||||
type: object
|
||||
"400":
|
||||
description: 请求参数错误或无效的ID格式
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"404":
|
||||
description: 猪批次不存在
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 更新猪批次
|
||||
tags:
|
||||
- 猪批次管理
|
||||
@@ -1518,22 +1470,6 @@ paths:
|
||||
description: 更新成功
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"400":
|
||||
description: 请求参数错误或无效的ID格式
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"404":
|
||||
description: 猪批次或猪栏不存在
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"409":
|
||||
description: 业务逻辑冲突 (如猪栏已被使用)
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
"500":
|
||||
description: 内部服务器错误
|
||||
schema:
|
||||
$ref: '#/definitions/controller.Response'
|
||||
summary: 更新猪批次关联的猪栏
|
||||
tags:
|
||||
- 猪批次管理
|
||||
|
||||
Reference in New Issue
Block a user