mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 07:15:06 +08:00
@@ -12,6 +12,7 @@ namespace Singularity\HDK\Core\Traits;
|
||||
use Closure;
|
||||
use Hyperf\Contract\LengthAwarePaginatorInterface;
|
||||
use Hyperf\Database\Model\Builder;
|
||||
use Hyperf\Database\Model\Relations\Relation;
|
||||
use Hyperf\Di\Annotation\Inject;
|
||||
use Hyperf\HttpServer\Contract\RequestInterface;
|
||||
use Hyperf\Stringable\Str;
|
||||
@@ -53,7 +54,7 @@ trait RestfulList
|
||||
|
||||
protected function responseFormatter(
|
||||
array $options,
|
||||
Builder $builder,
|
||||
Builder|Relation $builder,
|
||||
?Closure $filter = null
|
||||
) {
|
||||
$perPage = $options['size'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user