|
|
7 月之前 | |
|---|---|---|
| database | 7 月之前 | |
| src | 7 月之前 | |
| .gitignore | 7 月之前 | |
| LICENSE | 7 月之前 | |
| README.md | 7 月之前 | |
| command.php | 7 月之前 | |
| composer.json | 7 月之前 | |
| config.php | 7 月之前 | |
| info.php | 7 月之前 |
Auth 模块是 SixShop 的权限管理模块,用于管理用户、角色、权限等。
interface AuthInterface
{
/**
* 用户ID生成token
*/
public function generateToken(string $userId): string;
/**
* 验证token是否有效,并返回用户ID
*/
public function verifyToken(string $jwt): string;
/**
* 刷新token,返回新的token
*/
public function refreshToken(string $jwt): string;
/**
* 注销token
*/
public function revokeToken(string $jwt): void;
/**
* 获取用户类型
*/
public function getUserType(): UserTypeEnum;
}