feat: jwt
This commit is contained in:
16
app/Cache/Redis/Admin/AdminRedisKey.php
Normal file
16
app/Cache/Redis/Admin/AdminRedisKey.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Cache\Redis\Admin;
|
||||
|
||||
class AdminRedisKey
|
||||
{
|
||||
/**
|
||||
* 用户token
|
||||
* @param $userId
|
||||
* @return string
|
||||
*/
|
||||
public static function adminUserToken($userId): string
|
||||
{
|
||||
return 'admin:token:user:'.$userId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user