Appearance
模板列表
返回当前可用、已启用的胸牌模板。templateId 用于 按模板下发。
| 项 | 说明 |
|---|---|
| 方向 | 你 → 平台 |
| 方法 | GET |
| 路径 | /openapi/v1/devices/templates |
| Header | Authorization: Bearer <accessToken> |
响应
json
{
"templates": [
{
"templateId": 1,
"name": "模板一",
"previewPng": "<标准 Base64,PNG,不含 data:image 前缀>"
}
]
}| 参数名 | 类型 | 必传 | 描述 |
|---|---|---|---|
| templates | array | 是 | 模板列表 |
| templates[].templateId | int | 是 | 模板 ID |
| templates[].name | string | 是 | 模板名称 |
| templates[].previewPng | string | 否 | 预览图。标准 Base64 的 PNG |