getAiVisualReportList(params: QueryGetAiVisualReportList)

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

描述

查询智能视觉魔方报告列表

参数

参数类型必填说明
是请求体

返回值

类型:Promise<VisionBoxReport[]>
VisionBoxReport 数组(报告类型、标题、状态等见 minituya 返回表及类型字段)

引用对象

interfaceVisionBoxReport
属性类型描述
visionBoxIdstring视觉魔方 id
modelNamestring模型名称
reportIdstring报告 id
reportTypeReportType报告类型(日报 / 周报等)
reportTitleNamestring报告标题名称
报告正文内容(事件统计等)
summaryAndSuggestionstring总结与建议
detailTitlestring详情标题
totalNumTitlestring总数标题
reportStatenumber报告状态
reportStateNamestring报告状态名称
关联文件列表
reportKeystring报告业务 key
enumReportType
枚举值实际值描述
ReportType.DAILY1日报
ReportType.WEEKLY2周报

合法值

ReportType
值说明最低版本
1日报-
2周报-

示例代码

请求示例

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

getAiVisualReportList({
  gid: '194137',
  visionBoxId: 'vb-1',
  offset: 0,
  limit: 10,
})
  .then((list) => console.log(list))
  .catch(console.error);

返回示例

[
  {
    "visionBoxId": "vb-1",
    "modelName": "model-a",
    "reportId": "r1",
    "reportType": 1,
    "reportTitleName": "日报",
    "summaryAndSuggestion": "",
    "detailTitle": "详情",
    "totalNumTitle": "事件总数",
    "reportState": 1,
    "reportStateName": "已完成"
  }
]