feat: command
Some checks are pending
Build Docker / build (push) Waiting to run

This commit is contained in:
2024-10-26 18:27:45 +08:00
parent d15c03c04e
commit 3a39ff3790
12 changed files with 346 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Controller\Admin;
use App\Controller\AbstractController;
use App\Request\Admin\LoginRequest;
use App\Service\Admin\User\LoginService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: "admin/login")]
class LoginController extends AbstractController
{
#[RequestMapping(path: "user", methods: "POST")]
#[Scene(scene: "login")]
public function login(LoginRequest $request)
{
$service = new LoginService();
return $service->handle();
}
}