feat : login wx

This commit is contained in:
2024-11-11 17:04:10 +08:00
parent 83a38d5001
commit 3a5739ee19
20 changed files with 844 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Request\Api\LoginRequest;
use App\Service\Api\Login\LoginService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: 'api/login')]
class LoginController
{
#[RequestMapping(path: 'index',methods: 'post')]
#[Scene(scene: 'login')]
public function index(LoginRequest $request)
{
return (new LoginService)->handle();
}
}