更新猪群对应猪栏接口变更
This commit is contained in:
@@ -234,7 +234,10 @@ func (a *API) setupRoutes() {
|
||||
pigBatchGroup.GET("/:id", a.pigBatchController.GetPigBatch)
|
||||
pigBatchGroup.PUT("/:id", a.pigBatchController.UpdatePigBatch)
|
||||
pigBatchGroup.DELETE("/:id", a.pigBatchController.DeletePigBatch)
|
||||
pigBatchGroup.PUT("/:id/pens", a.pigBatchController.UpdatePigBatchPens)
|
||||
pigBatchGroup.POST("/:id/assign-pens", a.pigBatchController.AssignEmptyPensToBatch)
|
||||
pigBatchGroup.POST("/:fromBatchID/reclassify-pen", a.pigBatchController.ReclassifyPenToNewBatch)
|
||||
pigBatchGroup.DELETE("/:batchID/remove-pen/:penID", a.pigBatchController.RemoveEmptyPenFromBatch)
|
||||
pigBatchGroup.POST("/:id/move-pigs-into-pen", a.pigBatchController.MovePigsIntoPen)
|
||||
}
|
||||
a.logger.Info("猪批次相关接口注册成功 (需要认证和审计)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user