getGyroCleanRecordDetail(params: GetGyroCleanRecordDetailParams)

Requires:
@ray-js/ray≥1.7.14Base library≥2.29.0

Description

Get cleaning record details for a gyroscope-based robot vacuum

Parameters

ParameterTypeRequiredDescription
YesQuery parameters including Device ID, sub-record ID, and pagination info

Return Value

Type: Promise<GetGyroCleanRecordDetailResponse>
Promise that resolves with the cleaning record's map data and pagination info

Examples

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}>Get record details</Button>;
}