You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
355 B
PHTML
16 lines
355 B
PHTML
|
2 weeks ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Services\Ticket;
|
||
|
|
|
||
|
|
final readonly class TicketQueueQuery
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public int $page = 1,
|
||
|
|
public int $perPage = 15
|
||
|
|
) {
|
||
|
|
if ($this->page < 1 || $this->perPage < 1 || $this->perPage > 100) {
|
||
|
|
throw new \InvalidArgumentException('工单分页参数无效');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|