简化控制器层重复代码

This commit is contained in:
2025-10-07 00:18:17 +08:00
parent 21661eb748
commit 77ab434d17
4 changed files with 74 additions and 130 deletions

View File

@@ -10,7 +10,7 @@ import (
// TransferPigsAcrossBatches godoc
// @Summary 跨猪群调栏
// @Description 将指定数量的猪只从一个猪群的猪栏调动到另一个猪群的猪栏
// @Tags 猪批次管理
// @Tags 猪管理
// @Accept json
// @Produce json
// @Param sourceBatchID path int true "源猪批次ID"
@@ -42,7 +42,7 @@ func (c *PigBatchController) TransferPigsAcrossBatches(ctx *gin.Context) {
// TransferPigsWithinBatch godoc
// @Summary 群内调栏
// @Description 将指定数量的猪只在同一个猪群的不同猪栏间调动
// @Tags 猪批次管理
// @Tags 猪管理
// @Accept json
// @Produce json
// @Param id path int true "猪批次ID"