fix : jwt
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2025-09-13 12:16:13 +08:00
parent a1fdeb9148
commit 48ad2ebd1b
9 changed files with 135 additions and 18 deletions

View File

@@ -18,15 +18,21 @@ use Hyperf\Validation\Annotation\Scene;
#[Middleware(AdminTokenMiddleware::class)]
class AdminUserController
{
/**
* @return array
*/
#[RequestMapping(path: "getInfo", methods: "GET")]
public function getInfo()
public function getInfo(): array
{
return (new UserService)->handle();
}
#[RequestMapping(path: "refresh", methods: "POST")]
public function refresh()
/**
* @return array
*/
#[RequestMapping(path: "logout", methods: "POST")]
public function logout(): array
{
return (new UserService)->refresh();
return (new UserService)->logout();
}
}