feat : Proxy get user info
This commit is contained in:
30
app/Service/Test/Proxy/Cache/UserInfoService.php
Normal file
30
app/Service/Test/Proxy/Cache/UserInfoService.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This service file is part of item.
|
||||
*
|
||||
* @author ctexthuang
|
||||
* @contact ctexthuang@qq.com
|
||||
* @web_site https://ctexthuang.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Test\Proxy\Cache;
|
||||
|
||||
use App\Interface\Test\Proxy\UserInfoInterface;
|
||||
|
||||
class UserInfoService implements UserInfoInterface
|
||||
{
|
||||
/**
|
||||
* @param int $userId
|
||||
* @return array
|
||||
*/
|
||||
public function getUserInfo(int $userId): array
|
||||
{
|
||||
return [
|
||||
'userId' => $userId,
|
||||
'name' => 'User name'.$userId,
|
||||
'email' => 'user'.$userId.'@email.com',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user