From 2be151c6f9148d9326c9642866e0b92e086284f0 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 01 八月 2025 15:33:52 +0800
Subject: [PATCH] 1. 添加光谱传感器模块
---
SourceCode/Bond/Servo/RecipeManager.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/SourceCode/Bond/Servo/RecipeManager.h b/SourceCode/Bond/Servo/RecipeManager.h
index f13bc50..444a529 100644
--- a/SourceCode/Bond/Servo/RecipeManager.h
+++ b/SourceCode/Bond/Servo/RecipeManager.h
@@ -10,8 +10,7 @@
// 单个设备配方映射信息
struct DeviceRecipe {
int nDeviceID; // 设备ID
- int nRecipeID; // 该设备对应的子配方ID
- std::string strPPID; // 配方ID(主键)
+ int nRecipeID; // 子配方ID
std::string strDeviceName; // 设备名称
};
@@ -58,6 +57,9 @@
// 查询所有配方
std::vector<RecipeInfo> getAllRecipes();
+ // 根据 PPID 或描述查询配方
+ std::vector<RecipeInfo> getRecipesByKeyword(const std::string& keyword);
+
// 获取所有 PPID
std::vector<std::string> getAllPPID() const;
--
Gitblit v1.9.3