DEVICE_ALERT event 中的 alertTypeIconBase64 字段将删除 #22

Open
opened 2024-12-05 16:19:13 +08:00 by liangyuanpeng · 3 comments

需要请求 pagetype config 接口获取 icon 相关数据, 字段在 files.alertIcons 字段中, 如下示例所述

{
  "files":{
    "alertIcons": {
      "1": {
        "type": "base64",
        "url": null,
        "base64": "assssss",
        "compress": null
      }
    }
  }
}

其中 alertIcons 下的 key 为 alertStatusType (DEVICE_ALERT event 中的statusType字段).

即原本是直接使用 event 中字段使用 icon, 现在需要先请求 pagetype config接口获取到 icon, 当告警来时从刚才请求过的获取到本地的数据中找到对应的 icon

需要请求 pagetype config 接口获取 icon 相关数据, 字段在 files.alertIcons 字段中, 如下示例所述 ```json { "files":{ "alertIcons": { "1": { "type": "base64", "url": null, "base64": "assssss", "compress": null } } } } ``` 其中 alertIcons 下的 key 为 alertStatusType (DEVICE_ALERT event 中的statusType字段). 即原本是直接使用 event 中字段使用 icon, 现在需要先请求 pagetype config接口获取到 icon, 当告警来时从刚才请求过的获取到本地的数据中找到对应的 icon
jeff was assigned by liangyuanpeng 2024-12-05 16:19:17 +08:00
Author
Owner

相关页面旧的有 tab
新的有 simplepage

相关页面旧的有 tab 新的有 simplepage
Author
Owner

连接到对应PR或commit用于记录

连接到对应PR或commit用于记录
Author
Owner

请求接口需要添加 query param, resources=alertIcons

例如
https://smartoilets.net/openapi/api/config/get/type/simplepage/KWH/F2?resources=alertIcons

请求接口需要添加 query param, resources=alertIcons 例如 https://smartoilets.net/openapi/api/config/get/type/simplepage/KWH/F2?resources=alertIcons
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#22
No description provided.