增加公司信息
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2025-07-15 10:18:13 +08:00
parent 9c9242fcca
commit ed04b8772a
4 changed files with 38 additions and 0 deletions

View File

@ -57,4 +57,21 @@ class FirstCompanyController extends AbstractController
$data = $this->firstCompanyRepository->getList($page, $pageSize, $params);
return $this->apiResponse->success($data);
}
/**
* 公司详情.
* @throws Exception
*/
#[Scene(scene: 'companyInfo', argument: 'request')]
public function companyInfo(FirstCompanyRequest $request): Response
{
$companyId = $request->input('company_id');
$info = $this->firstCompanyRepository->companyInfo($companyId);
// 获取公司管理员工信息
$url = parse_url($info['domain']);
$domainUrl = $url['host'] ?? '';
$arrTmp = explode('.', $domainUrl, 2);
$info['domain'] = current($arrTmp);
return $this->apiResponse->success($info);
}
}