listTemplateIcons(data?: ListTemplateIconsParams)

版本要求:
@tuya-miniapp/cloud-api≥1.7.0

描述

查询模板图标列表

参数

参数类型必填说明
否请求参数

返回值

类型:Promise<ListTemplateIconsResult>
ListTemplateIconsResult

引用对象

typeListTemplateIconsResult模板图标列表
TemplateIcon[]

示例代码

请求示例

import { listTemplateIcons } from '@tuya-miniapp/cloud-api';

listTemplateIcons({})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('查询模板图标列表失败:', error);
  });

返回示例

[{ "iconUrl": "https://example.com/a.png", "objectKey": "icon/a.png" }]