1234567891011121314151617181920212223242526272829 |
- <?php
- declare(strict_types=1);
- namespace App\Request\Api\v1\User;
- use Hyperf\Validation\Request\FormRequest;
- class AddressListRequest extends FormRequest
- {
- /**
- * Determine if the user is authorized to make this request.
- */
- public function authorize(): bool
- {
- return true;
- }
- /**
- * Get the validation rules that apply to the request.
- */
- public function rules(): array
- {
- return [
- 'page' => 'required|integer:strict',
- 'list_rows' => 'required|integer:strict',
- ];
- }
- }
|