fix:member
This commit is contained in:
36
app/Request/Admin/MemberRequest.php
Normal file
36
app/Request/Admin/MemberRequest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Request\Admin;
|
||||
|
||||
use Hyperf\Validation\Request\FormRequest;
|
||||
|
||||
class MemberRequest 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 [
|
||||
'limit' => 'required|integer',
|
||||
'query_id' =>'sometimes|integer|exists:user,id',
|
||||
'query_name' =>'sometimes|string',
|
||||
'query_mobile' =>'sometimes|digits:11',
|
||||
'query_city_id' => 'sometimes|integer|exists:system_city,id',
|
||||
];
|
||||
}
|
||||
|
||||
protected array $scenes = [
|
||||
'list' => ['limit','query_id','query_name','query_mobile','query_city_id'],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user