refactoring collection a little bit, adjust token from collection manual,write some test for the simple logic, fixing superusers authAdmin

This commit is contained in:
Jonathan Martz
2025-01-21 23:52:11 +01:00
parent 28df3f28e7
commit f9911ffc29
14 changed files with 383 additions and 62 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace Pb\viewModels;
use DateTime;
class CollectionItem
{
public string $collectionName;
public string $collectionId;
public DateTime $created;
public string $id;
public DateTime $updated;
}

View File

@@ -0,0 +1,12 @@
<?php
namespace Pb\viewModels;
class CollectionResponse
{
public array $items;
public int $page;
public int $perPage;
public int $totalItems;
public int $totalPages;
}