实现优先使用库存的配方一键生成

This commit is contained in:
2025-11-27 21:06:15 +08:00
parent da8e1d0191
commit 1b5f715dec
8 changed files with 279 additions and 21 deletions

View File

@@ -260,6 +260,7 @@ func (a *API) setupRoutes() {
feedGroup.GET("/recipes/:id", a.recipeController.GetRecipe)
feedGroup.GET("/recipes", a.recipeController.ListRecipes)
feedGroup.POST("/recipes/generate-from-all-materials/:pig_type_id", a.recipeController.GenerateFromAllMaterials)
feedGroup.POST("/recipes/generate-prioritized-stock/:pig_type_id", a.recipeController.GenerateFromAllMaterials)
}
logger.Debug("饲料管理相关接口注册成功 (需要认证和审计)")