feat : wx login

This commit is contained in:
2024-11-27 15:20:46 +08:00
parent 9c175fdb78
commit 820b8d90dd
5 changed files with 170 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace App\Request\Api;
use Hyperf\Validation\Request\FormRequest;
class UserRequest 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 [
'code' => 'required|string',
];
}
}