再次优化

This commit is contained in:
阿不叮咚
2025-09-24 15:51:38 +08:00
parent edd4effc95
commit 998f8d8356
3 changed files with 15 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ abstract class AetherController
/**
* 创建资源 (RESTFul: POST /resources)
*/
public function store()
public function store(): array
{
$data = $this->request->all();
$id = $this->getService()->create($data);
@@ -71,8 +71,8 @@ abstract class AetherController
/**
* 获取对应的服务类
* @return \Aether\AbstractService
* @return AbstractService
*/
abstract protected function getService();
abstract protected function getService(): AbstractService;
}