fix:member

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-01-10 17:53:55 +08:00
parent 89b8db78dd
commit 2cee9e27c4
5 changed files with 147 additions and 2 deletions

View 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'],
];
}