Update linkos http client
parent
d226abe231
commit
235fbeafe6
|
|
@ -25,16 +25,16 @@ class HttpClient
|
|||
* @param array $pageable
|
||||
* @return array
|
||||
*/
|
||||
public function getDeviceFlowList(string $deviceId, Carbon $start, Carbon $end, array $pageable = []): array
|
||||
public function getDeviceFlowList(string $deviceId, Carbon $start, Carbon $end, int $page = 0, int $perPage = 50): array
|
||||
{
|
||||
$result = $this->post('/api/deviceFlow/v1/list', [
|
||||
'device_id' => $deviceId,
|
||||
'start_time' => $start->unix() * 1000,
|
||||
'end_time' => $end->unix() * 1000,
|
||||
'pageable' => array_merge([
|
||||
'page' => 0,
|
||||
'size' => 20,
|
||||
], $pageable),
|
||||
'pageable' => [
|
||||
'page' => $page,
|
||||
'size' => $perPage,
|
||||
],
|
||||
]);
|
||||
|
||||
return $result['data'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue