getGyroCleanRecordDetail(params: GetGyroCleanRecordDetailParams)

版本要求:
@ray-js/ray≥1.7.14基础库≥2.29.0

描述

获取陀螺仪扫地机的清扫记录详情

参数

参数类型必填说明
是查询参数,包含设备 ID、子记录 ID 和分页信息

返回值

类型:Promise<GetGyroCleanRecordDetailResponse>
Promise,resolve 值为清扫记录的地图数据和分页信息

示例代码

import React from 'react';
import { Button, getGyroCleanRecordDetail } from '@ray-js/ray';

export default function Demo() {
  const handleFetch = async () => {
    const detail = await getGyroCleanRecordDetail({
      devId: 'your-device-id',
      subRecordId: 12345,
      start: 0,
      size: 100,
    });
    console.log(detail.dataList, detail.hasNext);
  };
  return <Button onClick={handleFetch}>获取记录详情</Button>;
}