package com.mes.interaction; import com.mes.interaction.base.InteractionContext; import com.mes.interaction.base.InteractionResult; /** * 多设备交互接口 */ public interface DeviceInteraction { /** * 交互对应的设备类型 */ String getDeviceType(); /** * 执行交互逻辑 */ InteractionResult execute(InteractionContext context); /** * 是否支持指定操作 */ default boolean supportsOperation(String operation) { return true; } }