getGyroCleanRecords(params: GetGyroCleanRecordsParams)

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

描述

获取陀螺仪扫地机的清扫记录列表

参数

参数类型必填说明
是查询参数,包含设备 ID、DP 点集合和分页信息

返回值

类型:Promise<GetGyroCleanRecordsResponse>
Promise,resolve 值为陀螺仪清扫记录列表和总数

示例代码

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

export default function Demo() {
  const handleFetch = async () => {
    const result = await getGyroCleanRecords({
      devId: 'your-device-id',
      dpIds: [101, 102],
      offset: 0,
      limit: 10,
    });
    console.log(result.datas, result.totalCount);
  };
  return <Button onClick={handleFetch}>获取陀螺仪记录</Button>;
}