调整swag

This commit is contained in:
2025-10-06 22:26:57 +08:00
parent 035da5293b
commit 18b45b223c
4 changed files with 0 additions and 272 deletions

View File

@@ -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"
}
}
}
}