mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 14:25:40 +08:00
fix : jwt
Some checks failed
Build Docker / build (push) Has been cancelled
Some checks failed
Build Docker / build (push) Has been cancelled
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