feat : wx login

This commit is contained in:
2024-11-27 15:27:38 +08:00
parent 820b8d90dd
commit 237fed9fe6
3 changed files with 10 additions and 2 deletions

View File

@@ -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)