feat : Proxy get user info

This commit is contained in:
2025-09-07 13:10:17 +08:00
parent 705d18239f
commit 32bc27596e
7 changed files with 186 additions and 0 deletions

View 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',
];
}
}