This commit is contained in:
@ -40,6 +40,21 @@ class FirstCompanyController extends AbstractController
|
||||
|
||||
$this->firstCompanyRepository->addCompany($data);
|
||||
|
||||
$this->opLogs('[添加公司]' . $data['full_name'] ?? '');
|
||||
|
||||
return $this->apiResponse->success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 公司列表.
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
*/
|
||||
public function companyList(): Response
|
||||
{
|
||||
[$page, $pageSize] = $this->getPage();
|
||||
$params = $this->request->all();
|
||||
$data = $this->firstCompanyRepository->getList($page, $pageSize, $params);
|
||||
return $this->apiResponse->success($data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user