1
0
Fork 0

Update linkos http client

develop
李静 2023-04-28 14:02:31 +08:00
parent d226abe231
commit 235fbeafe6
1 changed files with 5 additions and 5 deletions

View File

@ -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'];