Group query functions

This commit is contained in:
2025-03-14 00:31:13 +01:00
parent f3d6e3e7b3
commit bee9457d9d

View File

@ -119,12 +119,16 @@ class SlotDbClient
*/
public function queryGroup(string $groupId): array
{
throw new \Exception("Not implemented");
$res = $this->get("/group/{$groupId}");
$data = json_decode($res->getBody(), true);
return $data;
}
public function updateGroup(string $groupId, array $props): array
{
throw new \Exception("Not implemented");
$res = $this->post("/group/{$groupId}", $props);
$data = json_decode($res->getBody(), true);
return $data;
}
public function deleteGroup(string $groupId): void