feat: admin login
This commit is contained in:
@@ -10,10 +10,27 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Admin;
|
||||
|
||||
use App\Lib\AdminReturn;
|
||||
use Hyperf\Context\Context;
|
||||
use Hyperf\Di\Annotation\Inject;
|
||||
use Hyperf\HttpServer\Contract\RequestInterface;
|
||||
|
||||
abstract class BaseService
|
||||
{
|
||||
/**
|
||||
* 请求对象
|
||||
* @var RequestInterface
|
||||
*/
|
||||
#[Inject]
|
||||
protected RequestInterface $request;
|
||||
|
||||
/**
|
||||
* 通用返回对象
|
||||
* @var AdminReturn $return
|
||||
*/
|
||||
#[Inject]
|
||||
protected AdminReturn $return;
|
||||
|
||||
/**
|
||||
* 管理员id
|
||||
* @var int $adminId
|
||||
|
||||
Reference in New Issue
Block a user