refactor(aiot): 简化离岗检测参数配置,固定技术细节参数
用户只需配置核心参数: - leave_countdown_sec: 离岗倒计时(默认300秒) - working_hours: 工作时间段 固定参数(使用默认值,前端不展示): - confirm_on_duty_sec: 10秒(在岗确认时间) - confirm_leave_sec: 30秒(离岗确认时间) 优点: - 简化用户配置,只需关注核心业务参数 - 技术细节参数固定,避免用户误配置 - 界面更简洁,降低学习成本 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ public class AiAlgorithmServiceImpl implements IAiAlgorithmService {
|
||||
// algoCode -> {algoName, targetClass, description, paramSchema}
|
||||
PRESET_ALGORITHMS.put("leave_post", new String[]{
|
||||
"离岗检测", "person", "检测人员是否在岗,支持工作时间段配置",
|
||||
"{\"confirm_on_duty_sec\":{\"type\":\"int\",\"default\":10,\"min\":1},\"confirm_leave_sec\":{\"type\":\"int\",\"default\":30,\"min\":1},\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"working_hours\":{\"type\":\"list\",\"default\":[]}}"
|
||||
"{\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"working_hours\":{\"type\":\"list\",\"default\":[]}}"
|
||||
});
|
||||
PRESET_ALGORITHMS.put("intrusion", new String[]{
|
||||
"周界入侵检测", "person", "检测人员进入指定区域",
|
||||
|
||||
Reference in New Issue
Block a user