27 lines
655 B
PHP
27 lines
655 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller\Api;
|
|
|
|
use App\Middleware\Api\JwtAuthMiddleware;
|
|
use App\Service\Api\User\BindPhoneByWxService;
|
|
use Hyperf\HttpServer\Annotation\Controller;
|
|
use Hyperf\HttpServer\Annotation\Middlewares;
|
|
use Hyperf\HttpServer\Annotation\RequestMapping;
|
|
use Hyperf\Validation\Annotation\Scene;
|
|
|
|
#[Controller(prefix: 'api/user')]
|
|
#[Middlewares([
|
|
JwtAuthMiddleware::class,
|
|
])]
|
|
class UserController
|
|
{
|
|
#[RequestMapping(path: 'bind_phone/wx_code',methods: 'post')]
|
|
#[Scene(scene: 'bind_phone_wx')]
|
|
public function bind_phone_by_wx_code()
|
|
{
|
|
return (new BindPhoneByWxService)->handle();
|
|
}
|
|
}
|