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 * @param array $pageable
* @return array * @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', [ $result = $this->post('/api/deviceFlow/v1/list', [
'device_id' => $deviceId, 'device_id' => $deviceId,
'start_time' => $start->unix() * 1000, 'start_time' => $start->unix() * 1000,
'end_time' => $end->unix() * 1000, 'end_time' => $end->unix() * 1000,
'pageable' => array_merge([ 'pageable' => [
'page' => 0, 'page' => $page,
'size' => 20, 'size' => $perPage,
], $pageable), ],
]); ]);
return $result['data']; return $result['data'];