39 lines
814 B
PHP
39 lines
814 B
PHP
<?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;
|
|
|
|
use App\Interface\Test\Proxy\UserInfoInterface;
|
|
use App\Service\Test\Proxy\Cache\UserInfoService;
|
|
use App\Service\Test\TestBaseService;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class UserService extends TestBaseService
|
|
{
|
|
/**
|
|
* @var UserInfoService
|
|
*/
|
|
#[Inject]
|
|
protected UserInfoInterface $userInfoInterface;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function handle(): array
|
|
{
|
|
return $this->return->success(
|
|
'success',
|
|
$this->userInfoInterface->getUserInfo(
|
|
(int)$this->request->input('user_id',1)
|
|
)
|
|
);
|
|
}
|
|
} |