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

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace App\Controller\Api;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Request\Api\UserRequest;
use App\Service\Api\User\BindPhoneByWxService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
@@ -19,7 +20,7 @@ class UserController
{
#[RequestMapping(path: 'bind_phone/wx_code',methods: 'post')]
#[Scene(scene: 'bind_phone_wx')]
public function bind_phone_by_wx_code()
public function bind_phone_by_wx_code(UserRequest $request)
{
return (new BindPhoneByWxService)->handle();
}