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.
18 lines
420 B
PHTML
18 lines
420 B
PHTML
|
2 weeks ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Services\Ticket;
|
||
|
|
|
||
|
|
final readonly class TicketThreadQuery
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public int $ticketId,
|
||
|
|
public int $page = 1,
|
||
|
|
public int $perPage = 8
|
||
|
|
) {
|
||
|
|
if ($this->ticketId < 1 || $this->page < 1
|
||
|
|
|| $this->perPage < 1 || $this->perPage > 100) {
|
||
|
|
throw new \InvalidArgumentException('工单读取参数无效');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|