multi-store/app/store/controller/BaseAdminController.php
2024-06-03 11:03:08 +08:00

25 lines
557 B
PHP

<?php
namespace app\store\controller;
use app\common\controller\BaseLikeController;
use app\common\lists\BaseDataLists;
use hg\apidoc\annotation as ApiDoc;
#[ApiDoc\NotParse()]
class BaseAdminController extends BaseLikeController
{
protected $adminId = 0;
protected $adminInfo = [];
public function initialize()
{
if (isset($this->request->adminInfo) && $this->request->adminInfo) {
$this->adminInfo = $this->request->adminInfo;
$this->adminId = $this->request->adminInfo['admin_id'];
}
}
}