feat: 增加订阅主题备注功能

This commit is contained in:
2026-07-20 22:03:03 +08:00
parent cd2f926ba7
commit 7eb62ca37f
6 changed files with 127 additions and 25 deletions
+4
View File
@@ -17,6 +17,8 @@ export interface MqttTopic {
topic: string;
/** 订阅 QoS 等级 */
qos: MqttQoS;
/** 主题备注,空字符串表示未备注 */
comment: string;
/** 当前是否已订阅 */
subscribed: boolean;
}
@@ -29,6 +31,8 @@ export interface TopicConfig {
topic: string;
/** 订阅 QoS 等级,默认 1 */
qos?: MqttQoS;
/** 主题备注,默认空字符串 */
comment?: string;
}
/** MQTT 服务器配置(不含运行时状态) */