mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-02-08 10:20:16 +08:00
fix : jwt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user