实现使用系统中所有可用的原料一键生成配方

This commit is contained in:
2025-11-26 20:44:41 +08:00
parent ba60ed541c
commit 34311889e8
12 changed files with 301 additions and 30 deletions

View File

@@ -259,6 +259,7 @@ func (a *API) setupRoutes() {
feedGroup.DELETE("/recipes/:id", a.recipeController.DeleteRecipe)
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)
}
logger.Debug("饲料管理相关接口注册成功 (需要认证和审计)")