feat : wx login
This commit is contained in:
@@ -11,6 +11,8 @@ use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
|
||||
#[Controller(prefix: 'api/user')]
|
||||
#[Middlewares([
|
||||
@@ -18,6 +20,12 @@ use Hyperf\Validation\Annotation\Scene;
|
||||
])]
|
||||
class UserController
|
||||
{
|
||||
/**
|
||||
* @param UserRequest $request
|
||||
* @return array
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[RequestMapping(path: 'bind_phone/wx_code',methods: 'post')]
|
||||
#[Scene(scene: 'bind_phone_wx')]
|
||||
public function bind_phone_by_wx_code(UserRequest $request)
|
||||
|
||||
Reference in New Issue
Block a user