getRecommendTemplateList(data?: GetRecommendTemplateListParams)

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

描述

总结模版推荐列表(每分类最多6条)

参数

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

返回值

类型:Promise<GetRecommendTemplateListResult>
GetRecommendTemplateListResult

引用对象

typeGetRecommendTemplateListResult总结模版推荐列表
CategoryTemplateList[]

示例代码

请求示例

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

getRecommendTemplateList({})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('总结模版推荐列表(每分类最多6条)失败:', error);
  });

返回示例

[{
  "nodeName": "会议",
  "nodeCode": "meeting",
  "templates": [{ "id": "tpl_1", "templateName": "会议纪要", "customize": false }]
}]