更新swag
This commit is contained in:
@@ -647,6 +647,15 @@ export const generateRecipeFromAllMaterials = (pigTypeId) => {
|
||||
return http.post(`/api/v1/feed/recipes/generate-from-all-materials/${pigTypeId}`);
|
||||
};
|
||||
|
||||
/**
|
||||
* 根据指定的猪类型ID,优先使用有库存的原料,自动计算并创建一个配方。
|
||||
* @param {number} pigTypeId - 猪类型ID
|
||||
* @returns {Promise<Response<GenerateRecipeResponse>>}
|
||||
*/
|
||||
export const generatePrioritizedStockRecipe = (pigTypeId) => {
|
||||
return http.post(`/api/v1/feed/recipes/generate-prioritized-stock/${pigTypeId}`);
|
||||
};
|
||||
|
||||
|
||||
export const FeedApi = {
|
||||
getNutrients,
|
||||
@@ -682,4 +691,5 @@ export const FeedApi = {
|
||||
updateRecipe,
|
||||
deleteRecipe,
|
||||
generateRecipeFromAllMaterials,
|
||||
generatePrioritizedStockRecipe,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user