增加设备类型详情方法

This commit is contained in:
2026-03-10 10:07:35 +08:00
parent 0f0795944c
commit 84655ceebd
2 changed files with 29 additions and 0 deletions

View File

@@ -42,6 +42,19 @@ type Result[D any] struct {
Data D `json:"data"` // 数据
}
// 设备类型详情
type DeviceTypeDetail struct {
Id uint32 `json:"id"` // ID
Name string `json:"name"` // 名称
Img string `json:"img"` // 图片地址
ConnectType uint8 `json:"connect_type"` // 连接类型
AppMaxSize uint32 `json:"app_max_size"` // 应用包最大大小
HeartbeatCheckInterval uint32 `json:"heartbeat_check_interval"` // 心跳检测间隔
HeartbeatIdleTime uint32 `json:"heartbeat_idle_time"` // 心跳最大空闲时间
AllowOnlineUpgrade uint8 `json:"allow_online_upgrade"` // 是否允许在线升级
AllowVoiceAssistant uint8 `json:"allow_voice_assistant"` // 是否允许使用语言助手
}
// 设备详情
type DeviceDetail struct {
Type uint8 `json:"type"` // 设备类型