实现库存管理相关逻辑
This commit is contained in:
@@ -261,6 +261,15 @@ func (a *API) setupRoutes() {
|
||||
feedGroup.GET("/recipes", a.recipeController.ListRecipes)
|
||||
}
|
||||
logger.Debug("饲料管理相关接口注册成功 (需要认证和审计)")
|
||||
|
||||
// 库存管理相关路由组
|
||||
inventoryGroup := authGroup.Group("/inventory")
|
||||
{
|
||||
inventoryGroup.POST("/stock/adjust", a.inventoryController.AdjustStock)
|
||||
inventoryGroup.GET("/stock/current", a.inventoryController.ListCurrentStock)
|
||||
inventoryGroup.GET("/stock/logs", a.inventoryController.ListStockLogs)
|
||||
}
|
||||
logger.Debug("库存管理相关接口注册成功 (需要认证和审计)")
|
||||
}
|
||||
|
||||
logger.Debug("所有接口注册成功")
|
||||
|
||||
Reference in New Issue
Block a user